joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421801
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x454d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x421899
push 0x444d8c
push 4
push eax
call fcn.00428696
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.00428786
mov edi, dword [eax]
call fcn.00428786
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00428723
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00428786
cmp dword [eax], ebx
je 0x4218b0
call fcn.00428786
push dword [eax]
call fcn.0041838d
pop ecx
jmp 0x4218b7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x421844
jmp 0x42193e
call fcn.00428786
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x42193a
cmp dword [ebp - 0x234], esi
jae 0x42193a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0042a570
add esp, 0xc
push 0x444aec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x421929
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x421929
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x421929
push ebx
push ebx
push esi
jmp 0x421932
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42193c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004267a2
leave
ret

Function at 0x4267a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454d50]
jne 0x4267ac
repz ret
jmp fcn.0042c5f3

Function at 0x432aae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.0043271d
push eax
push esi
push dword [ebp + 8]
call fcn.004326d2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0043271d
push eax
push esi
push dword [ebp + 8]
call fcn.004326d2
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
pop ebp
xlatb
Function at 0x432b38
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0043271d
push eax
push esi
push dword [ebp + 8]
call fcn.004326d2
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0043270d
test ah, 0x7e
and eax, 0xff7c9d88
invalid
Function at 0x43338d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0043271d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004326d2
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0043270d
push edx
dec ebx
mov ch, 0xd3
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x433401
cmp dword [ebp - 0x398], 0
je 0x4335cb
cmp dword [ebp + 0xc], 1
je 0x4335cb
cmp dword [ebp + 0xc], 8
jne 0x433593
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0043271d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004326d2
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.0043270d
sub byte [eax - 0x4a00570e], 0x68
stc
invalid
call fcn.0043270d
cld
add byte [edi - 0x435a7f79], bl
cli
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004326eb
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
invalid
invalid
pushfd
cld

Function at 0x434400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x7ab5b], al
inc dword [eax]
Function at 0x436713
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.0042bf55
and dword [ebp - 4], 0
cmp dword [0x45902c], 0
mov ebx, eax
jne 0x4367c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436875
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436875
push eax
call fcn.0042bee3
mov dword [esp], 0x446310
push edi
mov dword [0x45902c], eax
call esi
push eax
call fcn.0042bee3
mov dword [esp], 0x4462fc
push edi
mov dword [0x459030], eax
call esi
push eax
call fcn.0042bee3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459034], eax
call esi
push eax
call fcn.0042bee3
pop ecx
mov dword [0x45903c], eax
test eax, eax
je 0x4367c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bee3
pop ecx
mov dword [0x459038], eax
mov eax, dword [0x459038]
cmp eax, ebx
je 0x43681c
cmp dword [0x45903c], ebx
je 0x43681c
push eax
call fcn.0042bf5e
push dword [0x45903c]
mov esi, eax
call fcn.0042bf5e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43681c
test edi, edi
je 0x43681c
call esi
test eax, eax
je 0x436813
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436813
test byte [ebp - 0xc], 1
jne 0x43681c
or dword [ebp + 0x10], 0x200000
jmp 0x436855
mov eax, dword [0x459030]
cmp eax, ebx
je 0x436855
push eax
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436855
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436855
mov eax, dword [0x459034]
cmp eax, ebx
je 0x436855
push eax
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436855
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45902c]
call fcn.0042bf5e
pop ecx
test eax, eax
je 0x436875
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436877
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a902
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c3c0
push 0x40aa80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40e0c4], 0xffffffff
or dword [0x40e0c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40d130]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40d12c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40e0cc], eax
call fcn.0040aa77
cmp dword [0x40d0e0], 0
jne 0x40a985
push 0x40aa74
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040aa62
push 0x40d00c
push 0x40d008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40d128]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d124]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40d004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040a370
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x406034
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x406043
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403e7f
mov bl, 1
mov dl, bh
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403e7f
cmp eax, dword [ebp + edx*4 - 0x65]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40606c
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40606c
call fcn.00403e7f
cmpsb byte [esi], byte es:[edi]
xor eax, 0x5a8bbf94
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403e7f
push 0xfff068a7
jne 0x4060b6
push dword [ebp + 4]
push dword [ebp]
jne 0x4060b4
in eax, 0xff
inc dword [eax]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]

Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x40d400
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x4011c0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ecx
mov eax, dword [0x41129c]
push esi
push edi
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4011de
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x41129c]
add edi, 0x4da90
push ecx
push edi
push esi
call fcn.00401130
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x40
push 0x4da78
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x401250
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, ecx
push str.ws2_32.dll
mov dword [esp + 0x14], esi
call edi
mov ebx, eax
test ebx, ebx
je 0x401339
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
push ebx
call ebp
test eax, eax
je 0x401339
push 6
push 1
push 2
call eax
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4012a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
push str.CreateThread
push str.KERNEL32.dll
call edi
push eax
call ebp
mov dword [esp + 0x14], eax
push str.htons
push ebx
call ebp
mov esi, eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x30]
mov edi, eax
push ecx
mov word [esp + 0x1c], 2
call esi
mov word [esp + 0x1a], ax
mov edx, dword [edi + 0xc]
push str.connect
push ebx
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
call ebp
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0x10
push edx
mov ecx, dword [esi + 8]
push ecx
call eax
cmp eax, 0xffffffff
jne 0x401327
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4012b9
push 0
push 0
push esi
push 0x401350
push 0
push 0
call dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
Function at 0x402ab0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x40b400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, ecx
push 0
call edi
push 1
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x64], eax
call sub.MFC42.DLL_AfxGetModuleState
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
push 0
push 0
push 0
push ecx
push edx
push 0
push 0
push 0x90000000
push str.Measure
push 0
push 0
push eax
push 8
call sub.MFC42.DLL_AfxRegisterWndClass
push eax
push 8
mov ecx, esi
call sub.MFC42.DLL_CWnd::CreateEx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x24]
push 0
mov edi, eax
mov dword [esi + 0x5c], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x4c]
call sub.MFC42.DLL_CDC::Attach
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40d884
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esi + 0x50]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
test edi, edi
jne 0x402ba8
xor edx, edx
jmp 0x402bab
mov edx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esi + 0x50]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 0x48]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esi + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 8], 0x40d870
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0xac0ee4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xac0eee
pushal
call 0xac0ef4
pop ebp
sub ebp, 0x10
sub ebp, 0x6c0ee4
jmp 0xac0f0a
mov eax, 0x6c0ee4
add eax, ebp
add eax, 0x4c
mov ecx, 0x603
mov edx, 0x620d8feb
xor byte [eax], dl
inc eax
dec ecx
jne 0xac0f21
jmp 0xac0f34
pushal
pushal
invalid
Function at 0x402ee8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f24
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f44
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404cd0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4031a8
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.00404a60
test esi, esi
jne 0x4031de
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.00404b50
jmp 0x4031fc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004030ac
mov edi, eax
test esi, esi
je 0x4031fc
cmp dword [ebx], 0
je 0x4031fc
dec esi
jmp 0x4031e5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039cc
xor eax, eax
push ebp
push 0x4039c5
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 0x403a08
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 0x4039cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a6020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40482c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa04c], 0
je 0x40488d
cmp word [0x4aa220], 0xd7b2
jne 0x404855
cmp dword [0x4aa228], 0
jbe 0x404855
mov eax, 0x4aa21c
call dword [0x4aa238]
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 0x4048b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a602c], 0
jne 0x4048a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4049e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4a6030], 0
je 0x404a0a
mov edx, esi
mov eax, ebx
call dword [0x4a6030]
jmp 0x404a19
mov eax, 8
call fcn.00402ce0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4aa04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049ac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc