joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b629
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub esi, 0x3c363065
push 0x148cc6b5
pop esi
add eax, esi
call fcn.0043b675
inc eax
mov esi, esi
mov eax, 0xee0e7e65
xor dword [ebx], edx
sub eax, 0xb6f11d0a
inc ebx
add esi, 0xd0952233
cmp ebx, edi
jne fcn.0043b629
sub esi, 0x22bf842a
sub eax, 0x4855a77a
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x62d87c3d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x31664c2f
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x6e289303
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x6e289362
jmp 0x6e2893b0
jmp 0x6e2893fe
jmp 0x6e28944c
jmp 0x6e28949a
jmp 0x6e2894e8
jmp 0x6e289536
jmp 0x6e289584
jmp 0x6e2895d2
jmp 0x6e289620
jmp 0x6e28966e
jmp 0x6e2896bc
jmp 0x6e28970a
jmp 0x6e289758
jmp 0x6e2897a6
jmp 0x6e2897f4
jmp 0x6e289842
jmp 0x6e289890
jmp 0x6e2898de
jmp 0x6e28992c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x6e289980
jmp 0x6e2899ce
jmp 0x6e289a1c
jmp 0x6e289a6a
jmp 0x6e289ab8
jmp 0x6e289b06
jmp 0x6e289b54
jmp 0x6e289ba2
jmp 0x6e289bf0
jmp 0x6e289c3e
jmp 0x6e289c8c
jmp 0x6e289cda
jmp 0x6e289d28
jmp 0x6e289d76
jmp 0x6e289dc4
jmp 0x6e289e12
jmp 0x6e289e60
jmp 0x6e289eae
jmp 0x6e289efc
jmp 0x6e289f4a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
jmp 0x6e289fb2
jmp 0x6e28a000
jmp 0x6e28a04e
jmp 0x6e28a09c
jmp 0x6e28a0ea
jmp 0x6e28a138
jmp 0x6e28a186
jmp 0x6e28a1d4
jmp 0x6e28a222
jmp 0x6e28a270
jmp 0x6e28a2be
jmp 0x6e28a30c
jmp 0x6e28a35a
jmp 0x6e28a3a8
jmp 0x6e28a3f6
jmp 0x6e28a444
jmp 0x6e28a492
jmp 0x6e28a4e0
jmp 0x6e28a52e
jmp 0x6e28a57c
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
jmp 0x6e28a5d3
jmp 0x6e28a621
jmp 0x6e28a66f
jmp 0x6e28a6bd
jmp 0x6e28a70b
jmp 0x6e28a759
jmp 0x6e28a7a7
jmp 0x6e28a7f5
jmp 0x6e28a843
jmp 0x6e28a891
jmp 0x6e28a8df
jmp 0x6e28a92d
jmp 0x6e28a97b
jmp 0x6e28a9c9
jmp 0x6e28aa17
jmp 0x6e28aa65
jmp 0x6e28aab3
jmp 0x6e28ab01
jmp 0x6e28ab4f
jmp 0x6e28ab9d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
jmp 0x6e28ac04
jmp 0x6e28ac52
jmp 0x6e28aca0
jmp 0x6e28acee
jmp 0x6e28ad3c
jmp 0x6e28ad8a
jmp 0x6e28add8
jmp 0x6e28ae26
jmp 0x6e28ae74
jmp 0x6e28aec2
jmp 0x6e28af10
jmp 0x6e28af5e
jmp 0x6e28afac
jmp 0x6e28affa
jmp 0x6e28b048
jmp 0x6e28b096
jmp 0x6e28b0e4
jmp 0x6e28b132
jmp 0x6e28b180
jmp 0x6e28b1ce
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x2c], eax
jmp 0x6e28b236
jmp 0x6e28b284
jmp 0x6e28b2d2
jmp 0x6e28b320
jmp 0x6e28b36e
jmp 0x6e28b3bc
jmp 0x6e28b40a
jmp 0x6e28b458
jmp 0x6e28b4a6
jmp 0x6e28b4f4
jmp 0x6e28b542
jmp 0x6e28b590
jmp 0x6e28b5de
jmp 0x6e28b62c
jmp 0x6e28b67a
jmp 0x6e28b6c8
jmp 0x6e28b716
jmp 0x6e28b764
jmp 0x6e28b7b2
jmp 0x6e28b800
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x30], eax
jmp 0x6e28b868
jmp 0x6e28b8b6
jmp 0x6e28b904
jmp 0x6e28b952
jmp 0x6e28b9a0
jmp 0x6e28b9ee
jmp 0x6e28ba3c
jmp 0x6e28ba8a
jmp 0x6e28bad8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.MSVCR100.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x40104e
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Windows_original_main_args:_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
xor esi, esi
pop ecx
cmp dword [eax], ebx
jle 0x40104e
mov eax, dword [sym.imp.MSVCR100.dll___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
add esp, 0xc
inc esi
cmp esi, dword [eax]
jl 0x40102f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
xor ecx, ecx
cmp edi, ebx
jle 0x401088
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x40107d
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov ebp, eax
cmp eax, ebx
jne 0x401098
mov ebp, dword [esi]
mov ecx, dword [0x40300c]
cmp ecx, ebx
jne 0x4010a4
mov ecx, dword [esi]
mov eax, dword [0x403030]
push ebx
push ebx
push ebx
cmp eax, ebx
setne dl
movzx edx, dl
push edx
push ebp
push ecx
push 0x402158
push 0x402148
push dword [0x403034]
push 1
push eax
push 1
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41d326
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 0x41d354
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d372
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041d28c
jmp 0x41d372
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41d372
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041d28c
test edi, edi
mov eax, edi
jne 0x41d35c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0xe27e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa19000]
push edi
jmp 0xe27e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe27e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe27e80
mov eax, 1
add ebx, ebx
jne 0xe27ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe27e98
jne 0xe27eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe27e98
xor ecx, ecx
sub eax, 3
jb 0xe27ec8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe27f3a
mov ebp, eax
add ebx, ebx
jne 0xe27ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xe27ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xe27f04
inc ecx
add ebx, ebx
jne 0xe27ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe27ee5
jne 0xe27f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe27ee5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe27f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe27f15
jmp 0xe27e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe27f24
add edi, ecx
jmp 0xe27e86
pop esi
mov edi, esi
mov ecx, 0xbee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe27f42
cmp byte [edi], 6
jne 0xe27f42
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 0xe27f47
lea edi, [esi + 0xa25000]
mov eax, dword [edi]
or eax, eax
je 0xe27fb6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa29c6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa29d08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe27f74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa29d10]
or eax, eax
je 0xe27fb0
mov dword [ebx], eax
add ebx, 4
jmp 0xe27f91
call dword [esi + 0xa29d0c]
mov ebp, dword [esi + 0xa29d14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xe27fea
sub esp, 0xffffff80
jmp 0x419acc
Function at 0x4010b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.KERNEL32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40110d
push str.CreateEventA
push edi
call esi
push str.ResetEvent
push edi
mov dword [0x43888c], eax
call esi
push str.WaitForSingleObject
push edi
mov dword [0x438888], eax
call esi
push str.CreateThread
push edi
mov dword [0x438884], eax
call esi
push str.VirtualAlloc
push edi
mov dword [0x438880], eax
call esi
mov dword [0x43887c], eax
push str.Ws2_32.dll
call ebx
mov edi, eax
test edi, edi
je 0x401175
push str.WSAStartup
push edi
call esi
push str.WSACleanup
push edi
mov dword [0x438874], eax
call esi
push str.socket
push edi
mov dword [0x438870], eax
call esi
push str.closesocket
push edi
mov dword [0x43886c], eax
call esi
push str.connect
push edi
mov dword [0x438868], eax
call esi
push str.recv
push edi
mov dword [0x438864], eax
call esi
push str.gethostbyname
push edi
mov dword [0x438860], eax
call esi
mov dword [0x438878], eax
push str.msvcrt.dll
call ebx
test eax, eax
je 0x40118d
push str.memcpy
push eax
call esi
mov dword [0x43885c], eax
push str.USER32.dll
call ebx
test eax, eax
je 0x4011a5
push str.send
push eax
call esi
mov dword [0x438858], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401d30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
mov word [esp + 0x48], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
push 0
push 0x8000008
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401d9b
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x54
ret
push str.Failed_to_run_process_in_background.
push 0x43af20
call fcn.00403980
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402960
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x401ddb
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401ddb
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401dfc
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401df4
or al, 4
push 0
push eax
call fcn.00416ed1
pop edi
pop esi
add esp, 0x54
ret
Function at 0x41ac30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040bf50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41acfb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41acfb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41acae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41acb9
or bh, 8
and edi, 0x8000000
je 0x41acd4
mov eax, dword [0x43c5fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41acfb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b0d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b0fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b11f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b13a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f0b0
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 0x41f0f2
call fcn.00424c9d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f0f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f0e9
xor eax, eax
jmp 0x41f0fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f100
pop edi
pop esi
pop ebx
ret 4

Function at 0x42578f
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 0x4257bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4257db
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004256f5
jmp 0x4257db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4257db
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004256f5
test edi, edi
mov eax, edi
jne 0x4257c5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b671
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add ecx, ecx
call fcn.0043b6a8
and ecx, ecx
dec edi
xor dword [eax], edx
add ecx, ecx
sub edi, 1
inc eax
sub ecx, 0x171fbf3b
cmp eax, ebx
jne fcn.0043b671
sub esp, 4
mov dword [esp], ecx
pop ecx
and ecx, ecx
and edi, edi
ret
Function at 0x409581
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40958b
repz ret
jmp fcn.0040df6c

Function at 0x41219c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b60f
and dword [ebp - 0x14], 0
cmp dword [0x45c54c], 0
mov dword [ebp - 0x18], eax
jne 0x41224f
push 0x403784
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403778
push ebx
call edi
test eax, eax
je 0x4122f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403768
push ebx
mov dword [0x45c54c], eax
call edi
push eax
call esi
push 0x403754
push ebx
mov dword [0x45c550], eax
call edi
push eax
call esi
push 0x403738
push ebx
mov dword [0x45c554], eax
call edi
push eax
call esi
mov dword [0x45c55c], eax
test eax, eax
je 0x41224f
push 0x403720
push ebx
call edi
push eax
call esi
mov dword [0x45c558], eax
mov eax, dword [0x45c558]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122a8
cmp dword [0x45c55c], ecx
je 0x4122a8
push eax
call esi
push dword [0x45c55c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122a8
test ebx, ebx
je 0x4122a8
call edi
test eax, eax
je 0x41229f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41229f
test byte [ebp - 8], 1
jne 0x4122a8
or dword [ebp + 0x10], 0x200000
jmp 0x4122db
mov eax, dword [0x45c550]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122db
mov eax, dword [0x45c554]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45c54c]
call esi
test eax, eax
je 0x4122f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409581
leave
ret