joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x407eae
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407ea2
cmp dword [edi + 0x7c], ebx
je 0x407ebd
call fcn.00408280
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00407c00
add esp, 0xc
test eax, eax
je 0x407ee4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0040950e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407f25
push 0x4000
call fcn.0040950e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x407f32
push esi
call fcn.00409431
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407f7a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00406cb0
test eax, eax
jne 0x407f7a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x407fa4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x407fad
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x407fe7
mov cl, byte [ebp]
cmp cl, bl
je 0x407fe7
call fcn.004069a0
add ebp, 1
jne 0x407fd6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x408380
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x408421
cmp dword [esi + 4], 0xffffffff
jne 0x408421
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4083b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4083e9
cmp ax, 0x2f
je 0x4083e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4083d6
mov eax, dword [0x4196d8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00407100
add esp, 4
test eax, eax
jne 0x408407
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.004074e0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x408a60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x408aa0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x408aa0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x408b86
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x408abf
cmp ax, 0x5c
jne 0x408ac1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x408ab3
push edi
cmp ecx, ebx
je 0x408b04
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0040a870
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00408a60
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x408b2f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x408b20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408b20
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b33
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x408b50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408b50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x408b86
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040913f
add esp, 0x414
ret
Function at 0x40913f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c050]
jne 0x409149
repz ret
jmp fcn.0040a676

Function at 0x41081e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040df62
and dword [ebp - 4], 0
cmp dword [0x41da00], 0
mov ebx, eax
jne 0x4108cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410980
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410980
push eax
call fcn.0040def0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41da00], eax
call esi
push eax
call fcn.0040def0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41da04], eax
call esi
push eax
call fcn.0040def0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41da08], eax
call esi
push eax
call fcn.0040def0
pop ecx
mov dword [0x41da10], eax
test eax, eax
je 0x4108cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040def0
pop ecx
mov dword [0x41da0c], eax
mov eax, dword [0x41da0c]
cmp eax, ebx
je 0x410927
cmp dword [0x41da10], ebx
je 0x410927
push eax
call fcn.0040df6b
push dword [0x41da10]
mov esi, eax
call fcn.0040df6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410927
test edi, edi
je 0x410927
call esi
test eax, eax
je 0x41091e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41091e
test byte [ebp - 0xc], 1
jne 0x410927
or dword [ebp + 0x10], 0x200000
jmp 0x410960
mov eax, dword [0x41da04]
cmp eax, ebx
je 0x410960
push eax
call fcn.0040df6b
pop ecx
test eax, eax
je 0x410960
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410960
mov eax, dword [0x41da08]
cmp eax, ebx
je 0x410960
push eax
call fcn.0040df6b
pop ecx
test eax, eax
je 0x410960
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41da00]
call fcn.0040df6b
pop ecx
test eax, eax
je 0x410980
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410982
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x696c8f
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ecx, [ebp - 0xd9ca]
lea esp, [esp + 4]
popal
call 0x696c8f
ljmp 0xffe8
jmp 0x696c77
invalid
jmp 0x696c77

Function at 0x6970f2
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr eax, esi
jmp 0x69712f
rdtsc
mov dword [edi], ecx
setne cl
jmp 0x697119
sub esp, 0x13
js 0x69716b
push word [esp + 8]
mov al, 0x61
lea esp, [esp + 1]
jmp 0x69718a
je 0x6970fb
rdtsc
jmp 0x6970fd
push word [esp + 8]
mov al, 0x61
jmp 0x697155
Function at 0x697243
Capabilities:
Execute anti-debugging instructions

Disassembly:
setnp ch
neg dh
jl 0x6971d2
jge 0x6971d2

Function at 0x69726c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cx, bp
btr ecx, ebx
clc
call fcn.006970a5

Function at 0x697578
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
lea esp, [esp + 2]
add cl, 0x2c
rcr dx, cl
jmp 0x697520

Function at 0x697670
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x6976b8
add bl, cl
jle 0x6976a2
mov dh, byte [esp]
jmp 0x69773a
xchg word [esp + 1], dx
mov dx, bp
lea edx, [ebx*4]
lea esp, [esp + 3]
mov dx, 0x1534
lea esp, [esp + 1]
jmp 0x697672
bswap ecx
bsf cx, sp
jmp 0x69770e

Function at 0x6985db
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esp
mov dword [esp + 0x10], esi
push ebx
push word [esp]
jle 0x6985a0
jg 0x6985f3
jmp 0x6985b6
lea esp, [esp + 2]
Function at 0x698989
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc ecx
rdtsc
jmp 0x698866
inc dx
add esi, dword [ebp]
mov ecx, dword [esp]
jmp 0x69886d
inc ecx
rdtsc
rol esi, 0
inc dx
jmp 0x698893
xchg dh, al
lea eax, [esi + ebp]
jmp 0x698878
movzx ecx, byte [esi]
mov ax, word [esp]
sub eax, 0xef35a41b
jmp 0x6988e8
jle 0x698847
inc dx
jmp 0x698849
not edx
setl ah
rdtsc
jmp 0x6988d2
rdtsc
dec ax
setg dl
jmp 0x698935
lea esp, [esp + 0xc]
neg esi
mov ch, byte [esp]
rcr dh, cl
jb 0x698863
jae 0x698842
dec ax
setg dl
jmp 0x698935
jg 0x698899
not edx
setl ah
jmp 0x6988a6
mov dl, cl
sub esp, 0xc
je 0x698909
lea eax, [edx*4]
jmp 0x698956
jmp 0x6988f1
lea eax, [edx*4]
jmp 0x698916
not ax
lea eax, [esi + edi]
lea esp, [esp + 0xc]
sub dl, 0x65
jmp 0x698940
sub cl, bl
xchg dh, ah
pushfd
ror eax, cl
jo 0x698907
jno 0x6988f1
mov al, byte [esp]
or ah, 0xdf
jl 0x69895e
setne ah
jmp 0x698961
not ax
lea eax, [esi + edi]
jmp 0x69891c
setne ah
jmp 0x698ce8
rol dl, 0
mov ax, si
sub esp, 0xe
jle 0x698add
jg 0x698a70
inc ebp
into
pop esp
cmp edx, esi
aad 0x63
xchg esi, eax
aad 0x26
push ecx
lea esp, [esp + 1]
jmp 0x6988bf
xchg ah, al
jmp 0x698a04
lea esp, [esp + 0x10]
inc dl
bsf eax, edx
jo 0x698992
xchg ah, al
push ebp
lea eax, [eax*4]
jmp 0x698a0c
pop ax
jmp 0x6989e9
xor dl, 0x82
mov al, 0x97
sub esp, 3
jg 0x6989bf
pop ax
jmp 0x698a28
neg eax
lea esp, [esp + 1]
jmp 0x698a12
push ebp
lea eax, [eax*4]
lea esp, [esp + 4]
jmp 0x6989d7
sub bl, dl
jmp 0x698b4a
neg eax
lea esp, [esp + 1]
call fcn.00698a4b
mul dword [eax - 0xa]
xchg ecx, eax
pushal
rcr dword [0xf1467f6c], 1
invalid
lea eax, [esp + eax]
mov byte [esp + 0xa], bh
jmp 0x698aee
push dword [esp + 4]
stc
xchg word [esp + 0xc], ax
jmp 0x698a3f
push dword [esp + 4]
stc
xchg word [esp + 0xc], ax
lea eax, [esp + eax]
mov byte [esp + 0xa], bh
mov eax, dword [esp + 0xc]
lea esp, [esp + 2]
jmp 0x6989a8
inc esi
sub al, 0xcb
jnp 0x698b2d
xchg ah, dh
jmp 0x698b17
rol ax, 9
jmp 0x698afb
mov eax, edi
lea eax, [ebx*4]
dec ah
call fcn.00698b6d
inc esp
neg esi
sub dword [eax - 0x15], ecx
xchg ah, dh
mov eax, edi
lea eax, [ebx*4]
dec ah
mov dx, 0x26a4
jmp 0x698bbc
mov edx, ebx
neg dx
jb 0x698b11
rol ax, 9
jmp 0x698b15
dec cl
dec al
jmp 0x698bcc
lea edx, [ebx*4]
xor dx, 0x39d9
jb 0x698ba6
jae 0x698ba6
jae 0x698be2
bsf dx, si
mov dh, 0x41
call fcn.00698c55
mov cs, word [0xa217e49d]
sbb al, 0x6f
jbe 0x698c49
bsf dx, si
bsf edx, esi
mov dh, 0x41
bsr ax, si
jmp 0x698c9a
rol cl, 0
lea eax, [esi*4]
mov ax, cx
bts dx, si
jl 0x698cd0
jge 0x698cd0
mov dl, ah
mov ah, dl
lea edx, [eax + 0x3140a113]
rdtsc
jmp 0x698bff
sub al, byte [ebp - 0xc]
out 0xe8, eax
in eax, 0xff
invalid
call 0x698cba
pop es
mov word [edx], es
xchg esp, eax
xchg ebx, eax
sbb dword [ecx - 0xc50e418], ecx
jp 0x698ccc
invalid
rol dl, 0
mov eax, esi
pushfd
pop ax
mov eax, dword [esp]
lea esp, [esp + 2]
jmp 0x698966
Function at 0x698f4d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov esp, edi
xor dh, 0x6d
jl 0x698f5c
mov dh, byte [esp]
mov dl, 0x98
jmp 0x698fca
mov dx, word [esp + 3]
pop word [esp]
lea esp, [esp + 2]
jmp 0x698f37
mov dh, byte [esp]
call fcn.00698f8e
enter 0xffffffffffffd84a, 0xffffffffffffffbf
dec edx
cli
push 0xffffffffffffffef
jg 0x698f88
jmp 0xca711b9
xor dword [edi + 0x139011e6], ebx
neg dx
jmp 0x698ff8
push eax
ret
neg edx
jg 0x698fcf
jle 0x698fcf
lea esp, [esp + 2]
setge dh
lea eax, [edx + ebp]
jmp 0x699032
call fcn.0069900e
jl 0x69904d
xchg edx, eax
mov al, dh
jmp 0x699122
xchg edx, eax
mov al, dh
lea esp, [esp + 2]
jmp 0x6990e9
mov al, dh
mov dx, ax
jmp 0x6990b9
mov dx, ax
mov ax, sp
jmp 0x6990bc
sub cl, 0xff
or eax, ebp
jnp 0x699076
mov al, dh
jmp 0x699081
bswap edx
cmc
jne 0x6990c8
btr eax, esi
jmp 0x6990d3
mov ax, sp
xor cl, 0x39
mov dx, word [esp]
setge dh
jmp 0x6990a3
btr eax, esi
xchg edx, eax
jmp 0x6990f6
xchg edx, eax
mov dl, bh
jmp 0x6990f8
lea esp, [esp + 4]
neg cl
seto ah
mov ah, dl
jmp 0x699098
mov dl, bh
ror cl, 0
dec dh
jmp 0x699179
mov ax, word [esp]
bswap eax
dec ah
rcl dl, cl
jmp 0x699128
lea esp, [esp + 2]
jmp 0x6990e9
add cl, 0x3c
bts edx, esi
jnp 0x69915a
xchg edx, eax
mov dx, 0xde00
sub edx, edx
jmp 0x69915e
dec ah
rcl dl, cl
jmp 0x699128
mov dx, 0xde00
sub edx, edx
jmp 0x69915e
xchg edx, eax
jmp 0x699144
and ecx, 0x3c
mov edx, dword [esp]
pushfd
jmp 0x699199
jp 0x699103
mov ax, word [esp]
bswap eax
jmp 0x69913e
jmp 0x6997c3
sub ebp, 4
mov al, 0x9b
xchg al, dh
neg ah
jne 0x699183
setae dh
jmp 0x6997c6
mov cl, 0x70
setae dl
mov edx, 0x3a4ca172
mov dl, al
jmp 0x6995d0
mov ecx, ebp
mov dword [ecx], eax
jmp 0x699616
cmc
jg 0x699674
jle 0x699674
setae dh
mov eax, dword [ecx + edi]
not cl
not edx
jmp 0x6996ab

Function at 0x699719
Capabilities:
Execute anti-debugging instructions

Disassembly:
jnp 0x6996eb
lea esp, [esp + 2]
push dx
jmp 0x6996f9
lea esp, [esp + 2]
push dx
rdtsc
jmp 0x69973b
rdtsc
sub esp, 0x1a
mov dl, byte [esp + 0xf]
jmp 0x699742
xchg word [esp + 1], dx
pop dx
bt eax, ebp
jmp 0x6996d4
push word [esp + 0x19]
jge 0x69975d
mov dx, di
lea esp, [esp + 2]
jmp 0x699747
sub esp, 0x1a
mov dl, byte [esp + 0xf]
push ebx
not edx
jmp 0x699725
sub cl, bl
xchg edx, eax
pushfd
jmp 0x69977c
mov dx, di
lea esp, [esp + 2]
jmp 0x699747
mov ah, dh
jmp 0x69979f
mov dl, cl
bsr eax, esp
jl 0x699766
mov ah, dh
mov ax, 0x3bea
bsf eax, esi
jmp 0x6997a6
Function at 0x69a2f7
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, 0x97d76e5b
jmp 0x69a4ba
add edx, 0xa0470b85
call 0x69a564
popal
mov al, byte [0xda2a1ae3]
xchg dword [esp], ecx
bswap edx
xchg edx, eax
mov edx, 0x66f290d6
neg dx
jmp 0x69a30c
bsr ax, dx
shr ax, 0xa
bsf edx, ebp
cmc
lea edx, [eax*4]
jmp 0x69a2e1
lea edx, [eax + edi]
lea ecx, [ecx - 0x26]
bsr edx, ebx
neg dl
pushal
mov dword [esp + 0x16], ebp
jmp 0x69a3db
xchg dword [esp + 0x20], ecx
sub esp, 0x16
call fcn.0069a3a5
bt eax, esp
jmp 0x69a471
mov dword [esp + 0x14], ecx
jmp 0x69a450
mov dword [esp + 0x14], ecx
setg ah
mov ah, ch
popal
bsr eax, ebx
jmp 0x69a49a
pushal
mov esi, ebp
bswap edi
sbb dh, 0xf9
ja 0x69a41c
jbe 0x69a426
setg ah
mov ah, ch
popal
jmp 0x69a497
jmp 0x69a481
setnp ah
jmp 0x69a4df
rol cl, 0
mov eax, 0x9633c608
push sp
lea esp, [esp + 2]
jmp 0x69a444
shl edx, 2
inc ah
jle 0x69a45a
setnp ah
mov ax, di
bswap eax
jmp 0x6998a0
bsr eax, ebx
clc
setnp ah
neg eax
jl 0x69a458
jge 0x69a481
jmp 0x69a4c9
sub esp, 0x13
jne 0x69a4a4
inc ax
jmp 0x69a50d
inc ax
lea eax, [ecx + edi]
xchg word [esp + 2], ax
lea esp, [esp + 3]
call fcn.0069a535
mov bl, 0xaa
lds esp, [esi - 0x75]
invalid
mov ax, di
bswap eax
jmp 0x6998a0
mov edx, dword [edx + 0x6892235f]
jmp 0x69a4f5
pushal
mov eax, 0x82ab8910
pop dword [esp + 0x17]
jmp 0x6998c1
lea eax, [ecx + edi]
xchg word [esp + 2], ax
lea esp, [esp + 3]
jmp 0x69a4e9
Function at 0x4311d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x4311f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4311f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4311e8
mov eax, 1
add ebx, ebx
jne 0x43120b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431200
jne 0x43121c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431200
xor ecx, ecx
sub eax, 3
jb 0x431230
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4312a2
mov ebp, eax
add ebx, ebx
jne 0x43123b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43126c
inc ecx
add ebx, ebx
jne 0x431258
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43124d
jne 0x431269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43124d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43128c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43127d
jmp 0x4311ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43128c
add edi, ecx
jmp 0x4311ee
pop esi
mov edi, esi
mov ecx, 0x9ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4312aa
cmp byte [edi], 9
jne 0x4312aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4312af
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431327
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f624]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3f6ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4312dc
mov ecx, edi
jns 0x43130b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3f6f0]
or eax, eax
je 0x431321
mov dword [ebx], eax
add ebx, 4
jmp 0x4312f9
call dword [esi + 0x3f700]
mov ebp, dword [esi + 0x3f6f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43135b
sub esp, 0xffffff80
jmp 0x41638f
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40a05a]
shl eax, 2
mov dword [0x40a05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40b5a0
mov ecx, 0x4188d8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40a06e], edx
mov eax, dword [edx - 8]
mov dword [0x40a066], eax
mov eax, dword [edx - 4]
mov dword [0x40a06a], eax
sub edx, 4
mov dword [0x418650], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00404bea
pop ecx
push 0x40a02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40a062], eax
push 0
jmp fcn.00408c00

Function at 0x401094
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0x40a0d0
push 0
push 0x40a0a1
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x4010e8
push 4
push 0x40a084
push 4
push 0
push 0x40a0d1
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x4010ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x40a0d7
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x40113c
mov dword [ebp - 8], 4
lea edx, [ebp - 8]
push edx
push 0x40a084
push 0
push 0
push 0x40a106
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x406230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40624f
mov eax, dword [0x40aa50]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40625c
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x406289
je 0x40629b
sub ecx, 0x100
je 0x4062a9
sub ecx, 0x100
je 0x4062b0
sub ecx, 0x100
je 0x4062a2
jmp 0x4062b7
sub ecx, 0x600
je 0x4062b0
sub ecx, 0x100
je 0x40629b
jmp 0x4062b7
mov edi, 1
jmp 0x4062bc
mov edi, 2
jmp 0x4062bc
mov edi, 4
jmp 0x4062bc
mov edi, 5
jmp 0x4062bc
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4062e3
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40af40]
test al, 0x80
je 0x4062dc
mov ebx, 0x80
jmp 0x4062f5
mov ebx, 1
jmp 0x4062f5
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4062f5
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x406307
je 0x406310
dec eax
je 0x406319
jmp 0x406322
mov dword [ebp - 4], 0x80000000
jmp 0x406331
mov dword [ebp - 4], 0x40000000
jmp 0x406331
mov dword [ebp - 4], 0xc0000000
jmp 0x406331
push 1
call fcn.00406048
pop ecx
mov ebx, eax
jmp 0x40641d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40634d
sub eax, 0x10
je 0x406354
sub eax, 0x10
je 0x40635d
sub eax, 0x10
je 0x406366
jmp 0x406366
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40636d
mov dword [ebp - 8], 1
jmp 0x40636d
mov dword [ebp - 8], 2
jmp 0x40636d
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4063d6
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4063cb
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4063cb
add ebx, 0xffffffb2
push ebx
call fcn.00406048
pop ecx
mov ebx, eax
jmp 0x40641d
mov edi, esi
push edi
call fcn.004061a0
pop ecx
test eax, eax
je 0x4063ea
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4063f6
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405da4
add esp, 8
mov ebx, eax
inc eax
jne 0x40641d
push 4
call fcn.00406048
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4083b4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4085d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40b434], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408688
cmp byte [0x40a059], 0
je 0x408642
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00402ae8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40862b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00402ae8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40862b
lea ebx, [ebp - 0x54]
jmp 0x40862c
inc ebx
call fcn.00408588
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4086a9
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40b438
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402a88
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40b43b
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4086a9
cmp dword [0x40b434], 0xffffffff
je 0x4086a9
mov eax, dword [0x40b434]
test eax, eax
je 0x4086a9
cmp byte [eax], 0
je 0x4086a9
push esi
push eax
call fcn.00408738
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret