joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1382250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x14016ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.013789b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0136b8e0
lea ecx, [ebp - 0x144]
call fcn.0134da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x1382328
xor ecx, ecx
je 0x13822fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.01354170
mov ecx, eax
call fcn.0134f550
push eax
call fcn.011e16a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.01354580
jmp 0x13822b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.01382400
lea ecx, [ebp - 0x144]
call fcn.013824d0
lea ecx, [ebp - 0x140]
call fcn.0136f370
mov eax, dword [ebp + 8]
jmp 0x13823e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1382338
jmp 0x1382388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01327a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0134da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x138228b
lea ecx, [ebp - 0x144]
call fcn.0134da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0137a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.01378f80
lea ecx, [ebp - 0xe4]
call fcn.012a0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01382400
lea ecx, [ebp - 0x144]
call fcn.013824d0
lea ecx, [ebp - 0x140]
call fcn.0136f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01328a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1383a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1383a6c
call fcn.0132aeef
mov dword [eax], esi
call fcn.0132aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.01328cab
mov eax, esi
jmp 0x1383ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1383a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1383a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0132af02
pop ecx
call fcn.0132aedc
mov eax, dword [eax]
jmp 0x1383ac1
test al, 0x10
jne 0x1383abf
test al, 1
je 0x1383abf
test byte [ebp + 0xc], 2
je 0x1383abf
call fcn.0132aeef
mov dword [eax], 5
call fcn.0132aedc
mov dword [eax], 0xd
jmp 0x1383a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40942f
pop dword [ebp - 0x14]
mov eax, 0x40942f
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x78854239
add dword [ebp - 0x24], 0xd5cd0312
mov dword [ebp - 0x20], 0x909aca5
add dword [ebp - 0x20], 0x29299fa0
mov dword [ebp - 0x1c], 0x5e04b5dd
sub dword [ebp - 0x1c], 0x11b871af
mov dword [ebp - 0x18], 0x982a3054
add dword [ebp - 0x18], 0x67d5cfac
lea eax, [ebp - 0x24]
push eax
mov eax, 0x525c44ea
add eax, 0xade48b6a
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x12396ff9
add dword [ebp - 0x24], 0x6238f95d
mov dword [ebp - 0x20], 0xb78bbeb6
add dword [ebp - 0x20], 0x89e0a2bf
mov dword [ebp - 0x1c], 0x29c8c7f3
sub dword [ebp - 0x1c], 0xc6595b87
mov dword [ebp - 0x18], 0xa3ef4d30
add dword [ebp - 0x18], 0x5c10b2d0
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xd526a3f1
add eax, 0x2b1a2c5b
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3f05a
push 0
call eax
mov ecx, 0x5def
mov ebx, eax
mov esi, 0x10d7d20f
add esi, 0xef69ddf1
add esi, dword [ebp - 0x14]
mov edx, 0x626a4fc1
xor dword [ebp - 0x10], edx
mov edi, dword [esi]
add dword [ebp - 0x10], 0x7573ea16
add edi, edx
xor dword [ebp - 8], 0xdf128413
mov dword [ebx], edi
sub dword [ebp - 0x10], 0xa9494400
add ebx, 4
add esi, 0x73acdf55
sub esi, 0x73acdf51
loop 0x409540
add eax, 0x84dc4319
sub eax, 0x84dad88a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x120db1b6
sub ecx, 0x11cdb1b6
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402f40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x442008], 0x8088405
inc edx
mov dword [ebx + 0x442008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x409db0
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x409dbf
or edx, 0x200
test eax, 0x20000000
je 0x409df3
test eax, 0x40000000
je 0x409dde
test eax, 0x80000000
je 0x409dd9
or edx, 0x40
jmp 0x409e1a
or edx, 0x20
jmp 0x409e1a
test eax, 0x80000000
je 0x409ded
or edx, 0x80
jmp 0x409e1a
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x409e0b
test eax, 0x80000000
je 0x409e06
or edx, 4
jmp 0x409e1a
or edx, 2
jmp 0x409e1a
test eax, 0x80000000
je 0x409e17
or edx, 8
jmp 0x409e1a
or edx, 1
mov eax, edx
ret

Function at 0x40ce50
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov ecx, eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov esi, 0x20
mov eax, dword [esp]
mov edx, dword [esp + 4]
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx + 4]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
add dword [ecx], eax
add dword [esp], 0x9e3779b9
adc dword [esp + 4], 0
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 0xb
shr edx, 0xb
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
add dword [ecx + 4], eax
dec esi
jne 0x40ce6f
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cee0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov ecx, eax
mov dword [esp], 0xc6ef3720
mov dword [esp + 4], 0x13
mov esi, 0x20
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 0xb
shr edx, 0xb
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
sub dword [ecx + 4], eax
sub dword [esp], 0x9e3779b9
sbb dword [esp + 4], 0
mov eax, dword [esp]
mov edx, dword [esp + 4]
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx + 4]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
sub dword [ecx], eax
dec esi
jne 0x40ceff
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415220
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, ecx
mov edi, edx
mov esi, eax
push ebp
push edi
push esi
call fcn.00405818
mov ebx, eax
test ebx, ebx
jne 0x415250
mov eax, 0x415260
call fcn.0041460c
test al, al
je 0x415250
push ebp
push edi
push esi
call fcn.00405818
mov ebx, eax
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x417278
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push esi
push edi
push ebp
xor ebx, ebx
xor ebp, ebp
push 0x4172c4
call fcn.004057e0
mov esi, eax
test esi, esi
je 0x4172bb
mov eax, 0x4172d8
call fcn.0041460c
test al, al
je 0x4172bd
push 0x4172ec
push esi
call fcn.00405750
mov edi, eax
test edi, edi
je 0x4172bd
xor ecx, ecx
mov edx, ebp
mov al, 1
call edi
mov bl, 1
jmp 0x4172bd
xor ebx, ebx
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x418674
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call fcn.00405788
cmp dword [ebp - 0x9c], 1
je 0x418743
xor eax, eax
push ebp
push 0x418739
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20
call fcn.004056c0
push eax
call fcn.00405538
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push 0x41874c
push 0
call fcn.00405530
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004054e0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
call fcn.004054e0
mov eax, dword [ebp - 4]
push eax
call fcn.004055a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x418743
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4204e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042d0
xor eax, eax
push ebp
push 0x420560
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004040e0
mov ebx, eax
test ebx, ebx
jle 0x42053b
mov esi, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dl, byte [edx + esi - 1]
xor dl, 0xf
call fcn.00403fec
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.004040e8
inc esi
dec ebx
jne 0x42051a
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420567
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e28
ret
Function at 0x421638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9c0
push ebx
push esi
push edi
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
lea ebx, [ebp - 0x230]
push 0x10
push 0x4423c8
lea eax, [ebp - 0x640]
push eax
call fcn.00421280
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 8
call fcn.004056c0
push eax
call fcn.00405538
test eax, eax
je 0x4217eb
lea ecx, [ebp - 0x20]
push ecx
push 0x200
push ebx
push 1
push dword [ebp - 4]
call fcn.00405508
test eax, eax
je 0x4217e3
mov eax, 0x200
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x630]
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x430]
push ecx
push dword [ebx]
push 0
call fcn.00405528
test eax, eax
je 0x4217e3
mov edx, 0xba0da71d
xor eax, eax
cmp eax, dword [ebp - 0x24]
jae 0x421704
movsx ecx, byte [ebp + eax - 0x430]
imul ecx, edx
mov ebx, eax
and ebx, 3
xor dword [ebp + ebx*4 - 0x640], ecx
imul ecx, edx, 0xbc8f
mov edx, ecx
inc eax
cmp eax, dword [ebp - 0x24]
jb 0x4216df
xor ecx, ecx
cmp ecx, dword [ebp - 0x28]
jae 0x421731
movsx ebx, byte [ebp + ecx - 0x630]
imul ebx, edx
mov edi, eax
and edi, 3
xor dword [ebp + edi*4 - 0x640], ebx
imul ebx, edx, 0xbc8f
mov edx, ebx
inc eax
inc ecx
cmp ecx, dword [ebp - 0x28]
jb 0x42170b
mov edx, dword [ebp - 0x640]
or edx, 1
mov edi, dword [ebp + 0xc]
add edi, 4
mov eax, dword [ebp + 0xc]
add eax, 5
mov dword [ebp - 0x30], eax
xor eax, eax
cmp eax, dword [ebp + 0x10]
jae 0x421786
mov cl, byte [edi + eax]
dec ecx
shl ecx, 4
mov ebx, dword [ebp - 0x30]
mov bl, byte [ebx + eax]
add bl, 0xdf
or cl, bl
mov ebx, edx
and bl, 0xff
sub cl, bl
push ecx
mov ecx, eax
shr ecx, 1
mov ebx, dword [ebp + 0xc]
add ebx, ecx
pop ecx
mov byte [ebx], cl
imul ecx, edx, 0x10ff5
mov edx, ecx
add eax, 2
cmp eax, dword [ebp + 0x10]
jb 0x421750
mov dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x640]
mov dword [ebp - 0x10], edx
shr eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041bb04
test eax, eax
je 0x4217e3
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00421280
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx], 0
push dword [ebp - 0x18]
call fcn.004057f8
xor esi, esi
push dword [ebp - 4]
call fcn.004055a8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4312e4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4312f6
add esp, 0xfffffff0
call fcn.004034d8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004042d0
mov eax, dword [ebp + 0x18]
call fcn.004042d0
mov eax, dword [ebp + 0x14]
call fcn.004042d0
mov eax, dword [ebp + 0x10]
call fcn.004042d0
xor eax, eax
push ebp
push 0x431398
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.00403e58
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
mov edx, dword [ebp + 0x18]
call fcn.00403e58
lea eax, [esi + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00403e58
lea eax, [esi + 0x18]
mov edx, dword [ebp + 0x14]
call fcn.00403e58
lea eax, [esi + 0x18]
call fcn.00419a68
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov byte [esi + 0x20], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43139f
lea eax, [ebp - 4]
call fcn.00403e04
lea eax, [ebp + 0x10]
mov edx, 3
call fcn.00403e28
ret

Function at 0x4313c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4313d2
add esp, 0xfffffff0
call fcn.004034d8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004042d0
mov eax, dword [ebp + 0x14]
call fcn.004042d0
mov eax, dword [ebp + 0x10]
call fcn.004042d0
mov eax, dword [ebp + 0xc]
call fcn.004042d0
xor eax, eax
push ebp
push 0x431473
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.00403e58
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
mov edx, dword [ebp + 0x14]
call fcn.00403e58
lea eax, [esi + 0x18]
mov edx, dword [ebp + 0x10]
call fcn.00403e58
lea eax, [esi + 0x18]
call fcn.00419a68
lea eax, [esi + 0xc]
mov edx, dword [ebp + 0xc]
call fcn.00403e58
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov byte [esi + 0x20], 0
xor eax, eax
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43147a
lea eax, [ebp - 4]
call fcn.00403e04
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00403e28
ret

Function at 0x43428c
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x43429b
or edx, 0x200
test eax, 0x20000000
je 0x4342cf
test eax, 0x40000000
je 0x4342ba
test eax, 0x80000000
je 0x4342b5
or edx, 0x40
jmp 0x4342f6
or edx, 0x20
jmp 0x4342f6
test eax, 0x80000000
je 0x4342c9
or edx, 0x80
jmp 0x4342f6
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4342e7
test eax, 0x80000000
je 0x4342e2
or edx, 4
jmp 0x4342f6
or edx, 2
jmp 0x4342f6
test eax, 0x80000000
je 0x4342f3
or edx, 8
jmp 0x4342f6
or edx, 1
mov eax, edx
ret
Function at 0x434760
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, edx
mov dword [esp], eax
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
mov byte [ebx + 0x10], 0
mov ebp, dword [esp]
cmp word [ebp], 0x5a4d
jne 0x4348bb
mov eax, dword [esp]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
cmp dword [edi], 0x4550
jne 0x4348bb
push 4
push 0x2000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
push eax
call fcn.004058b0
mov esi, eax
test esi, esi
jne 0x4347e5
push 4
push 0x2000
mov eax, dword [edi + 0x50]
push eax
push 0
call fcn.004058b0
mov esi, eax
test esi, esi
je 0x4348bb
mov dword [ebx + 4], esi
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
mov byte [ebx + 0x10], 0
push 4
push 0x1000
mov eax, dword [edi + 0x50]
push eax
push esi
call fcn.004058b0
push 4
push 0x1000
mov eax, dword [edi + 0x54]
push eax
push esi
call fcn.004058b0
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4348bb
mov ecx, dword [ebp + 0x3c]
add ecx, dword [edi + 0x54]
mov edx, dword [esp]
mov eax, dword [esp + 4]
call fcn.00405c4c
mov eax, dword [esp + 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov dword [ebx], ecx
mov ebp, esi
mov dword [ecx + 0x34], ebp
mov ecx, ebx
mov edx, edi
mov eax, dword [esp]
call fcn.00434670
mov eax, ebp
sub eax, dword [edi + 0x34]
test eax, eax
je 0x434880
push eax
mov edx, ebx
mov eax, 5
push dword [edx + eax*4]
dec eax
jns 0x434875
call fcn.0043459c
mov eax, ebx
call fcn.004343ec
test al, al
jne 0x434894
push 1
call fcn.00405890
jmp 0x4348bb
mov eax, ebx
call fcn.004342fc
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4348b7
mov edi, eax
add edi, ebp
test edi, edi
je 0x4348bb
push 0
push 1
push ebp
call edi
test eax, eax
je 0x4348bb
mov byte [ebx + 0x10], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x429250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x510a74]
push ebx
mov ebx, dword [ebp + 8]
inc eax
push esi
push eax
push ecx
mov dword [0x510a74], eax
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0041bbe0
add esp, 0x10
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x204]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4292a0
push edi
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4292b1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
pop edi
nop
mov ax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x4292d0
mov eax, dword [str..dat]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov eax, dword [str.2Iem]
mov dword [ebx + 4], eax
mov ax, word [0x4fb0d4]
pop esi
mov word [ebx + 8], ax
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret 4
Function at 0x402fa8
Capabilities:
Query or enumerate registry value

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

Function at 0x403d4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c048], 0
je 0x403dad
cmp word [0x48c21c], 0xd7b2
jne 0x403d75
cmp dword [0x48c224], 0
jbe 0x403d75
mov eax, 0x48c218
call dword [0x48c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48906c
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 0x403dd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x489030], 0
jne 0x403dc9
push 0
push 0x489064
push 0x48906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d12
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404138
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b6c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cfc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d19
lea eax, [ebp - 0x10]
call fcn.00403ec8
ret

Function at 0x40b0c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb8
jmp 0x40b102
mov eax, ebx
mov edx, esi
call fcn.00403f1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b10c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b12d
mov al, byte [esp]
jmp 0x40b12f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b62c
mov eax, dword [0x48b22c]
cmp byte [eax], 0
je 0x40b830
mov eax, dword [0x48aebc]
call fcn.004029d8
call fcn.0040284c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408900
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b878
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b866
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48ae34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48c664]
call fcn.004051c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret