joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41cc38
call fcn.0041b783
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41cc38
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41cc7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41cc64
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41cc64
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41cc78
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e438
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e524]
jne 0x42e442
repz ret
jmp fcn.00435e9c

Function at 0x4318cb
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 0x4318fc
call fcn.004328ed
mov dword [eax], esi
call fcn.004328da
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00431407
add esp, 0x14
push 0x16
pop eax
jmp 0x431951
test dword [ebp + 0xc], 0xfffffff9
jne 0x4318d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x431929
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432900
pop ecx
call fcn.004328da
mov eax, dword [eax]
jmp 0x431951
test al, 0x10
jne 0x43194f
test al, 1
je 0x43194f
test byte [ebp + 0xc], 2
je 0x43194f
call fcn.004328ed
mov dword [eax], 5
call fcn.004328da
mov dword [eax], 0xd
jmp 0x431920
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43ee70
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.00434275
and dword [ebp - 4], 0
cmp dword [0x4627f4], 0
mov ebx, eax
jne 0x43ef21
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43efd2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43efd2
push eax
call fcn.00434203
mov dword [esp], 0x4504a8
push edi
mov dword [0x4627f4], eax
call esi
push eax
call fcn.00434203
mov dword [esp], 0x450494
push edi
mov dword [0x4627f8], eax
call esi
push eax
call fcn.00434203
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4627fc], eax
call esi
push eax
call fcn.00434203
pop ecx
mov dword [0x462804], eax
test eax, eax
je 0x43ef21
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434203
pop ecx
mov dword [0x462800], eax
mov eax, dword [0x462800]
cmp eax, ebx
je 0x43ef79
cmp dword [0x462804], ebx
je 0x43ef79
push eax
call fcn.0043427e
push dword [0x462804]
mov esi, eax
call fcn.0043427e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43ef79
test edi, edi
je 0x43ef79
call esi
test eax, eax
je 0x43ef70
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ef70
test byte [ebp - 0xc], 1
jne 0x43ef79
or dword [ebp + 0x10], 0x200000
jmp 0x43efb2
mov eax, dword [0x4627f8]
cmp eax, ebx
je 0x43efb2
push eax
call fcn.0043427e
pop ecx
test eax, eax
je 0x43efb2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43efb2
mov eax, dword [0x4627fc]
cmp eax, ebx
je 0x43efb2
push eax
call fcn.0043427e
pop ecx
test eax, eax
je 0x43efb2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4627f4]
call fcn.0043427e
pop ecx
test eax, eax
je 0x43efd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43efd4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x445200
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 0x445231
call fcn.004328ed
mov dword [eax], esi
call fcn.004328da
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00431407
add esp, 0x14
push 0x16
pop eax
jmp 0x445286
test dword [ebp + 0xc], 0xfffffff9
jne 0x44520d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44525e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432900
pop ecx
call fcn.004328da
mov eax, dword [eax]
jmp 0x445286
test al, 0x10
jne 0x445284
test al, 1
je 0x445284
test byte [ebp + 0xc], 2
je 0x445284
call fcn.004328ed
mov dword [eax], 5
call fcn.004328da
mov dword [eax], 0xd
jmp 0x445255
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40120f
pop dword [ebp - 0x50]
mov eax, 0x40120f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x8a40edd1
sub dword [ebp - 0x60], 0x3beea886
mov dword [ebp - 0x5c], 0xf1686a40
add dword [ebp - 0x5c], 0x40cae205
mov dword [ebp - 0x58], 0x139b12be
sub dword [ebp - 0x58], 0xc74ece90
mov dword [ebp - 0x54], 0x3d34a111
add dword [ebp - 0x54], 0xc2cb5eef
lea eax, [ebp - 0x60]
push eax
mov eax, 0x4b08cbd4
sub eax, 0x4ac7fba0
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x28ebe1bc
sub dword [ebp - 0x60], 0xb4797866
mov dword [ebp - 0x5c], 0xdbdca98b
sub dword [ebp - 0x5c], 0x9a704816
mov dword [ebp - 0x58], 0x87bce3f
add dword [ebp - 0x58], 0x5af39e2d
mov dword [ebp - 0x54], 0x129ad454
sub dword [ebp - 0x54], 0x129ad454
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xb725b7f6
sub eax, 0xb6e4e7c6
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x391a6
push 0
call eax
mov ecx, 0xd8cffe0e
add ecx, 0x27304a6f
xor edi, edi
add edi, eax
mov ebx, 0x421000
add ebx, dword [ebp - 0x50]
mov esi, 0xdb35bd39
add esi, 0x31d4159
sub dword [ebp - 8], ebx
mov edx, dword [ebx]
add dword [ebp - 0x18], ecx
add edx, esi
add dword [ebp - 0x24], ecx
mov dword [edi], edx
xor dword [ebp - 0x34], ecx
add edi, 4
add ebx, 0xbc2b8c5
sub ebx, 0xbc2b8c1
loop 0x401328
add eax, 0xed2c30f6
sub eax, 0xed2b1c2f
mov ebx, eax
add eax, 0xfe599e6f
sub eax, 0xfe599e6a
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
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 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x219b24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219ca0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
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 + 0x219ca4]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x219cb4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x219ca8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x418cb8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd88
push ebx
xor edx, edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x270], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404abc
lea eax, [ebp - 0x164]
mov edx, dword [0x40a15c]
call fcn.00404f5c
xor eax, eax
push ebp
push 0x418ef1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x101
lea eax, [ebp - 0x265]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov dl, 1
mov eax, dword [0x41697c]
call fcn.00416a7c
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00416b1c
mov cl, 1
mov edx, 0x418f08
mov eax, ebx
call fcn.00416b80
lea ecx, [ebp - 8]
mov edx, 0x418f20
mov eax, ebx
call fcn.00416d48
lea ecx, [ebp - 0x270]
mov edx, 5
mov eax, 0x418f30
call fcn.00417694
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 4]
call fcn.00404918
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.0040b500
test eax, eax
jne 0x418e91
mov eax, dword [ebp - 0x158]
mov edx, 0x418f40
call fcn.00404a18
jne 0x418dba
lea eax, [ebp - 0x164]
call fcn.0040b550
mov eax, dword [ebp - 0x158]
mov edx, 0x418f4c
call fcn.00404a18
jne 0x418dd7
lea eax, [ebp - 0x164]
call fcn.0040b550
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x418e11
lea eax, [ebp - 0x274]
mov ecx, 0x418f58
mov edx, dword [ebp - 0x158]
jmp 0x44c66c
lea eax, [ebp - 0x278]
mov ecx, 0x418f64
mov edx, dword [ebp - 4]
call fcn.00404918
mov eax, dword [ebp - 0x278]
call fcn.004177fc
push 0x418f7c
push dword [ebp - 0x158]
push 0x418f98
push 0x418f64
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040498c
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404acc
push eax
mov eax, dword [ebp - 8]
call fcn.00404acc
push eax
push 0x418f9c
push 5
call sub.shell32.dll_ShellExecuteA
lea eax, [ebp - 0x164]
call fcn.0040b550
lea eax, [ebp - 0x164]
call fcn.0040b550
test eax, eax
je 0x418d9d
mov eax, ebx
call fcn.00416aec
mov eax, ebx
call fcn.00403b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418ef8
lea eax, [ebp - 0x278]
call fcn.0040460c
lea eax, [ebp - 0x274]
call fcn.0040460c
lea eax, [ebp - 0x270]
mov edx, 2
call fcn.00404630
lea eax, [ebp - 0x164]
mov edx, dword [0x40a15c]
call fcn.00405020
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404630
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40611c
pop dword [ebp - 0x20]
mov eax, 0x40611c
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x22af310d
add dword [ebp - 0x30], 0x2ba3143e
mov dword [ebp - 0x2c], 0x5aa6e43b
sub dword [ebp - 0x2c], 0x287397f6
mov dword [ebp - 0x28], 0xecdf4f5e
add dword [ebp - 0x28], 0x5f6cf4d0
mov dword [ebp - 0x24], 0x9b4ee1ae
sub dword [ebp - 0x24], 0x9b4ee1ae
lea eax, [ebp - 0x30]
push eax
mov eax, 0x6db606c4
add eax, 0x928a699c
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x71323653
sub dword [ebp - 0x30], 0xfcbfccfd
mov dword [ebp - 0x2c], 0x55819618
sub dword [ebp - 0x2c], 0x141534a3
mov dword [ebp - 0x28], 0x6f46a87e
add dword [ebp - 0x28], 0xf428c3ee
mov dword [ebp - 0x24], 0x4ff7b707
sub dword [ebp - 0x24], 0x4ff7b707
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xc984aab2
add eax, 0x36bbc64e
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3d51f
push 0
call eax
mov ecx, 0x62d9
mov ebx, eax
mov esi, 0x7272b40e
sub esi, 0x7231b40e
add esi, dword [ebp - 0x20]
mov edx, 0x69755c5d
mov edi, dword [esi]
sub dword [ebp - 0x1c], edi
xor edi, edx
mov dword [ebx], edi
sub dword [ebp - 0x1c], ecx
add ebx, 4
add esi, 0x37ed636e
sub esi, 0x37ed636a
loop 0x40622d
add eax, 0x5dcfd56c
add eax, 0xa231a8cb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x63983410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6398346b
cmp byte [esi + ebx - 1], 0xa
je 0x6398343f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x63984118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00414dd5
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00414dd5
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.00414dd5
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.00414dd5
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.00414dd5
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.00414dd5
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.00414dd5
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.00414dd5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.00414dd5
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.00414dd5
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.00414dd5
pop ecx
push 1
call fcn.00414dd5
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.00414dd5
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.00414dd5
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.00414dd5
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab