joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000cd63
pop dword [ebp - 0x18]
mov eax, 0x76f7fcf5
add eax, 0x9908d06e
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x33cd3
push 0
mov eax, 0x34a894ab
sub eax, 0x24a75447
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x52322af2
add ecx, 0xadce0839
xor esi, esi
add esi, eax
mov edx, 0x10018600
add edx, dword [ebp - 0x18]
mov ebx, 0xe38aff43
add ebx, 0xd5cdbca1
add dword [ebp - 8], esi
mov edi, dword [edx]
xor dword [ebp - 0x10], 0xe9dccbef
add edi, ebx
sub dword [ebp - 8], edi
mov dword [esi], edi
add dword [ebp - 8], 0x85a78656
add esi, 4
add edx, 0x7fd766f3
add edx, 0x80289911
loop 0x1000cdbe
add eax, 0x4b4defbc
sub eax, 0x4b4d303d
mov ebx, eax
add eax, 5
mov ecx, 0x81624d8d
add ecx, 0x8e9db273
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6ba9497a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2e433c25
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430a4a2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x430a4a3c
pop dword [ebp - 0xc]
mov eax, 0x565c8132
add eax, 0xecadc90a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3748d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xcb4852d3
add ecx, 0x34b7f37e
xor esi, esi
add esi, eax
mov edi, 0x430ade00
add edi, dword [ebp - 0xc]
mov ebx, 0x29de734f
add ebx, 0x48e46d54
xor dword [ebp - 4], 0xa89e50d8
mov edx, dword [edi]
mov dword [ebp - 8], 0x8bed594a
xor edx, ebx
sub dword [ebp - 4], eax
mov dword [esi], edx
xor dword [ebp - 4], ecx
add esi, 0xcc909210
sub esi, 0xcc90920c
add edi, 4
loop 0x430a4a92
add eax, 0x10c17
mov ebx, eax
add eax, 0xc90bf54a
add eax, 0x36f40abb
mov ecx, 0x430a0000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9
Function at 0x29a05134
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x29a05143
pop dword [ebp - 0x24]
mov eax, 0xcb37b469
sub eax, 0xa1976326
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x6f588b8d
sub dword [ebp - 0x34], 0x21064642
mov dword [ebp - 0x30], 0x5bbba753
sub dword [ebp - 0x30], 0x29885b0e
mov dword [ebp - 0x2c], 0x1a5ddb31
add dword [ebp - 0x2c], 0x31ee68fd
mov dword [ebp - 0x28], 0x5d17da97
add dword [ebp - 0x28], 0xa2e82569
lea eax, [ebp - 0x34]
push eax
mov eax, 0x471b657c
sub eax, 0x1d7a24f0
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xc72b4f77
sub dword [ebp - 0x34], 0x52b8e621
mov dword [ebp - 0x30], 0xf884dc05
sub dword [ebp - 0x30], 0xb7187a90
mov dword [ebp - 0x2c], 0x339bcf3d
add dword [ebp - 0x2c], 0x2fd39d2f
mov dword [ebp - 0x28], 0x24fee161
add dword [ebp - 0x28], 0xdb011e9f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x5952f4dd
sub eax, 0x2fb1b499
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3c67c
push 0
call eax
mov ecx, 0xaa54e3b0
add ecx, 0x55ab6cc7
mov edx, eax
mov ebx, 0x833845a8
sub ebx, 0x599625a8
add ebx, dword [ebp - 0x24]
mov edi, 0x8c01bf96
add edi, 0x307fdc7a
add dword [ebp - 0x10], 0xd3156bfc
mov esi, dword [ebx]
mov dword [ebp - 0x14], 0x714499ec
sub esi, edi
xor dword [ebp - 0x20], edx
mov dword [edx], esi
xor dword [ebp - 0x20], 0x9b5c7180
add edx, 4
add ebx, 0x4eaed42d
add ebx, 0xb1512bd7
loop 0x29a05265
add eax, 0x82ff59a0
add eax, 0x7d01db0f
mov ebx, eax
add eax, 0xd3dcdd68
sub eax, 0xd3dcdd63
mov ecx, 0xa828ea92
sub ecx, 0x7e88ea92
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0xdc730c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc7316
pushal
call 0xdc731c
pop ebp
sub ebp, 0x10
sub ebp, 0x9c730c
jmp 0xdc7332
mov eax, 0x9c730c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d4
mov edx, 0x5ddbb64b
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc7349
jmp 0xdc735c
rol byte [esi + 0x4b77c2c0], 0x4b
dec ebx
retf 0xb38a
Function at 0x412730
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41275e
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x412759
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x412743
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41274b
cmp edx, ebx
jne 0x412899
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41271a
add eax, dword [eax + 4]
jmp 0x412707
mov dword [ebp + 0xc], ebx
jmp 0x412769
invalid
invalid
invalid
Function at 0x2e001137
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x2e001146
pop dword [ebp - 0x50]
mov eax, 0xd18a3b34
add eax, 0x5c75d612
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd800588c
sub dword [ebp - 0x60], 0x89ae1341
mov dword [ebp - 0x5c], 0xfbd6ded0
sub dword [ebp - 0x5c], 0xc9a3928b
mov dword [ebp - 0x58], 0xfd84dbb3
sub dword [ebp - 0x58], 0xb1389785
mov dword [ebp - 0x54], 0xd9b809
add dword [ebp - 0x54], 0xff2647f7
lea eax, [ebp - 0x60]
push eax
mov eax, 0x68607b58
sub eax, 0x3a5d5a90
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xf0b0bc64
sub dword [ebp - 0x60], 0x7c3e530e
mov dword [ebp - 0x5c], 0xd63d3fcd
add dword [ebp - 0x5c], 0x6b2f21a8
mov dword [ebp - 0x58], 0xb2ef3ce5
add dword [ebp - 0x58], 0xb0802f87
mov dword [ebp - 0x54], 0x82cafffa
sub dword [ebp - 0x54], 0x82cafffa
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x8de7b46c
add eax, 0xa01b6c50
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x40867
push 0
call eax
mov ecx, 0x55f5eab5
sub ecx, 0x55f5a484
mov esi, eax
mov edx, 0xc9e585db
sub edx, 0x9be017db
add edx, dword [ebp - 0x50]
mov ebx, 0x4534ca56
add ebx, 0x78b46
sub dword [ebp - 0x30], 0xdfeda698
mov edi, dword [edx]
sub dword [ebp - 0x44], esi
xor edi, ebx
add dword [ebp - 0x30], edx
mov dword [esi], edi
add esi, 4
add edx, 0xea251119
sub edx, 0xea251115
loop 0x2e001268
add eax, 0xaaf3d17
sub eax, 0xaae3180
mov ebx, eax
add eax, 0x32415719
sub eax, 0x32415714
mov ecx, 0x75c842d6
add ecx, 0xb837bd2a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e001137
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e001137
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret
Function at 0x4024d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40266d
mov esi, dword [ebp + 8]
test esi, esi
je 0x40266d
mov dword [esi + 0xf0], 0xa
mov ecx, dword [edi]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov dword [esi], eax
lea eax, [esi + 4]
mov edx, dword [edi + 4]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov edi, 0x601804
push ebx
mov ebx, ecx
rol ecx, 8
and ecx, 0xff00ff
ror ebx, 8
and ebx, 0xff00ff00
or ebx, ecx
mov ecx, ebx
mov dword [esi + 0xc], ebx
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x602d30]
mov ecx, ebx
shr ecx, 8
xor edx, 0x1000000
and ecx, 0xff
and edx, 0xff000000
mov ecx, dword [ecx*4 + 0x602930]
and ecx, 0xff0000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x603130]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x603530]
and ecx, 0xff00
xor edx, ecx
mov ecx, dword [eax]
xor edx, dword [esi]
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
mov dword [esi + 0x18], edx
xor ecx, edx
mov dword [esi + 0x1c], ecx
pop ebx
mov edi, edi
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
mov esi, dword [ecx*4 + 0x602930]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x602d30]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x603130]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x603530]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi]
add edi, 4
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x601828
jne 0x4025e0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x402680
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004024d0
add esp, 4
test eax, eax
js 0x40286c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x4026f4
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4026b4
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x402867
lea esi, [ebx + 2]
jmp 0x402710
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x603130]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x602530]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601d30]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601930]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x602130]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x603130]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x602530]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601d30]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x602130]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601930]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x603130]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x602530]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601d30]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x602130]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601930]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x603130]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x602530]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601d30]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x602130]
movzx eax, dl
movzx eax, byte [eax*4 + 0x603130]
xor ecx, dword [eax*4 + 0x601930]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x402710
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x403930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b320a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00598ca6
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4039d6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.005772a8
push 0x62af14
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0057c6a5
push edi
push esi
call fcn.00598f3c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005771f5
mov esp, ebp
pop ebp
ret 4

Function at 0x403f70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3298
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00404770
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00403ea0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x403fe1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.005772a8
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40400a
push dword [esp + 0xc]
call fcn.0044f301
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3478
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea edx, [edi + 0x10]
lea ecx, [esp + 0x18]
call fcn.004248f0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x28]
add eax, 0xa
mov dword [edi], eax
add eax, 4
push eax
call fcn.0044f2f8
mov esi, eax
mov dword [esp + 0x14], 0xe
mov eax, dword [edi]
sub esp, 0x14
mov ecx, esp
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
mov eax, dword [edi + 8]
mov dword [esi + 6], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xa], eax
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00405f20
mov ecx, dword [edi]
add esp, 0x1c
add ecx, 4
mov dword [ebx], esi
cmp dword [esp + 0x2c], 0x10
mov dword [ebx + 4], ecx
jb 0x40609a
push dword [esp + 0x18]
call fcn.0044f301
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005771f5
mov esp, ebp
pop ebp
ret 4

Function at 0x407170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3648
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x630490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0059966f
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 0
mov dword [edi], vtable.std::_LaunchPad_class_std::_Bind_1__void__void____cdecl__const__struct_AgentPack::CreateAgentAppLinkPack___struct_AgentPack::CreateAgentAppLinkPack__.0
push 0xffffffffffffffff
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
movzx eax, byte [esi + 8]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 9]
mov byte [edi + 0x19], al
mov eax, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x20], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x24], eax
lea eax, [esi + 0x18]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
mov ax, word [esi + 0x30]
mov word [edi + 0x40], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b9b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046518c
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00469ac8
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x40bab3
call fcn.004660f5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ba32
push 0x80004005
call fcn.0040cd00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x65
mov dword [esp + 0x1c4], 0
call fcn.004693e3
test eax, eax
je 0x40ba66
push 0x65
push eax
lea ecx, [esp + 0x20]
call fcn.0040c690
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x40ba8e
push 0
push 0
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
call edi
mov eax, dword [esp + 0x14]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
add esi, 0xfffffff0
mov dword [esp + 0x1c0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bab3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xbc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0xbc]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
lea eax, [esp + 0x1c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, ebx
call fcn.0040b880
mov eax, 1
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.005771f5
mov esp, ebp
pop ebp
ret

Function at 0x40c320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00464a94

Function at 0x40c560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c575
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c5b4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c5b0
lea ebx, [ebx]
cmp esi, edx
jae 0x40c5b4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40c5a0
cmp esi, edx
jb 0x40c5b9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret