joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456f40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048ae45
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004568e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048ad73
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00487631
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00487631
push 1
push 0
push 0
mov ecx, esi
call fcn.004875d9
push 1
push 0
push 1
mov ecx, esi
call fcn.004875d9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048aeb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4570c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048ae45
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004568e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048ad73
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x457184
cmp dword [esp + 0x40], 1
jne 0x457182
cmp ecx, eax
jge 0x457184
mov eax, ecx
cmp eax, 0xc8
jge 0x457190
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00456f40
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048aeb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x457900
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492b13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00485a4f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048b0ed
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048c64c
test eax, eax
je 0x457a1c
mov ecx, dword [esp + 0x3c]
call fcn.0048b11a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4579e0
push edi
mov ecx, esi
call fcn.0048877f
mov ecx, esi
call fcn.00457b80
cmp dword [esp + 0x38], 1
jne 0x457a15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004888ba
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45a430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a463
push esi
call fcn.0045d540
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a45c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a4e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a4d2
mov eax, dword [esi + 8]
test eax, eax
je 0x45a487
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a4ce
cmp eax, 2
je 0x45a4d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a47a
cmp eax, 3
je 0x45a4ad
cmp eax, 1
jne 0x45a47a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a47a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a47a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a510
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a4f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a510
add esp, 4
pop esi
ret
Function at 0x4668b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.004746b0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.004754b2
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x466a5d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x466a5d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.00466a70
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00466a70
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.00466a70
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.00466a70
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x466a5d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x468ea0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4bc40c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x468eb3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x468ef4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4bc4b4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x468f26
mov bl, byte [esp + ecx + 0x4c]
jmp 0x468f2a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x468f1b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x468f48
mov bl, byte [esp + ecx + 0x4c]
jmp 0x468f4c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x468f3d
xor ecx, ecx
mov eax, 0x4bc41c
xor ebx, ebx
mov bl, byte [ecx + 0x4bc4c4]
cmp byte [esp + ebx + 0x14], 0
je 0x468f77
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4bc4dc]
cmp byte [esp + ebx + 0x14], 0
je 0x468f8e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x468f5e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x468ee7
lea edx, [esp + 0x84]
push edx
call fcn.00468fd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x46b010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46b076
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46b076
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46b057
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x46bc60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46bca9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46c120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046bcd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046bd50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046bd50
lea ecx, [esi + 0xc]
call fcn.00484401
lea ecx, [esi + 0x10]
call fcn.00484401
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046d2e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046d2e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046d2e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00484476
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00484476
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46f170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x46f2c5
cmp di, 0x801
ja 0x46f2c5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x46f2c5
cmp bx, 0xc
ja 0x46f2c5
mov al, byte [esp + 0x30]
test al, al
je 0x46f1c4
push edi
call fcn.0046f700
add esp, 4
cmp ax, bx
je 0x46f1c4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.0046f2d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.0046f0f0
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x46f2c5
test ebx, ebx
jne 0x46f259
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x46f2bb
test al, al
je 0x46f24c
push 0xffffffffffffffe1
jmp 0x46f24e
push 0x1f
push ebp
push edi
push esi
call fcn.0046f0a0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.0046f0a0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.0046f2d0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0046f0f0
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x46f226
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x470950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4934e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x4f44fc
lea ecx, [esp + 4]
call fcn.004844e4
push 0x4c4ca4
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.004844e4
push 0x4c4ca0
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004844e4
push 0x4c4c9c
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004844e4
push 0x4c4c98
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.004844e4
push 0x4c4c94
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.004844e4
push 0x4c4c90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.004844e4
push 0x4c4c8c
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.004844e4
push 0x4c4c88
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.004844e4
push 0x4c4c84
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.004844e4
push 0x4c4c80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.004844e4
push 0x4c4c7c
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.004844e4
push 0x4c4c78
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.004844e4
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x470a80
cmp eax, 0xc
jle 0x470a80
mov ecx, dword [esp + 0x48]
push 0x4f44fc
call fcn.004845b3
jmp 0x470a8e
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.00484563
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.00484476
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.00484476
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.00484476
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.00484476
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.00484476
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.00484476
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.00484476
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.00484476
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.00484476
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.00484476
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.00484476
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.00484476
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00484476
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x486844
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48687c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004848d1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004848a9
jmp 0x486888
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x487f39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x487f7b
call fcn.0048daf6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x487f7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487f72
xor eax, eax
jmp 0x487f83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00487f89
pop edi
pop esi
pop ebx
ret 4

Function at 0x48e026
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48e054
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e072
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048df8c
jmp 0x48e072
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e072
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048df8c
test edi, edi
mov eax, edi
jne 0x48e05c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403cac
test esi, esi
jne 0x402f46
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403d9c
jmp 0x402f64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402e14
mov edi, eax
test esi, esi
je 0x402f64
cmp dword [ebx], 0
je 0x402f64
dec esi
jmp 0x402f4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40315c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40313c
xor eax, eax
push ebp
push 0x403135
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403178
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40313c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40b010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x403b8d
cmp word [0x40c218], 0xd7b2
jne 0x403b55
cmp dword [0x40c220], 0
jbe 0x403b55
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403bb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x403ba9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408d68
Capabilities:
Parse pe header

Disassembly:
push ebx
xor edx, edx
mov ebx, eax
mov ecx, ebx
mov ebx, dword [ebx + 0x3c]
add ebx, eax
mov eax, ebx
cmp word [ecx], 0x5a4d
jne 0x408da0
cmp dword [eax], 0x4550
jne 0x408da0
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
jne 0x408da0
movzx eax, word [eax + 0x16]
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ebx
ret
Function at 0x408e34
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], eax
xor edi, edi
mov eax, dword [esp]
call fcn.00408d68
test al, al
je 0x408eda
mov eax, dword [esp]
call fcn.00408d38
test eax, eax
je 0x408eda
mov edx, dword [esp]
mov ebx, dword [edx + 0x3c]
add ebx, dword [esp]
lea esi, [ebx + 0x18]
movzx edx, word [ebx + 0x14]
add esi, edx
push 0x40
push 0x3000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x408eda
mov ecx, dword [esi + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.004048f0
movzx ebp, word [ebx + 6]
dec ebp
test ebp, ebp
jb 0x408ed6
inc ebp
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov edx, dword [esi + edi*8 + 0xc]
mov eax, dword [esp + 4]
call fcn.00408d30
mov dword [esp + 8], eax
mov edx, dword [esi + edi*8 + 0x14]
mov eax, dword [esp]
call fcn.00408d30
mov ecx, dword [esi + edi*8 + 0x10]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004048f0
inc ebx
dec ebp
jne 0x408ea3
mov edi, dword [esp + 4]
mov eax, edi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409164
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4091f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x1000
push 0x104
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x104
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403dcc
mov edx, dword [ebp - 4]
mov eax, 0x40920c
call fcn.00404084
test eax, eax
jle 0x4091d4
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403dcc
mov edx, dword [ebp - 8]
mov eax, 0x409218
call fcn.00404084
test eax, eax
jg 0x4091d9
mov ebx, 0x40921c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091fb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403cd0
ret