joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41755f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4175aa
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004176fe
test al, al
jne 0x4175a4
sub edx, 2
cmp edx, edi
jne 0x41758a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4175cc
lea eax, [edi + 2]
cmp edx, eax
je 0x4175cc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004174ab
add esp, 0x10
jmp 0x4176c6
push esi
lea ecx, [ebp - 0x255]
call fcn.004176fe
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41760f
push dword [ebp - 0x25c]
jmp 0x4175bc
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41764c
cmp word [ebp - 0x226], 0
je 0x41766d
cmp word [ebp - 0x226], ax
jne 0x41764c
cmp word [ebp - 0x224], 0
je 0x41766d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004174ab
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4176b9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x417626
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4176a1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4176c6
push 0x4172db
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041b3c0
add esp, 0x10
jmp 0x417696
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret

Function at 0x41d220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d24d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d24d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
pushal
mov esi, section._5521408
lea edi, [esi - 0x143000]
push edi
or ebp, 0xffffffff
jmp 0x567cd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x567cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x567cc8
mov eax, 1
add ebx, ebx
jne 0x567ceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x567cfc
jne 0x567d1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x567d1b
dec eax
add ebx, ebx
jne 0x567d08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x567ce0
add ebx, ebx
jne 0x567d17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x567d6d
xor ecx, ecx
sub eax, 3
jb 0x567d33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x567da2
sar eax, 1
mov ebp, eax
jmp 0x567d3e
add ebx, ebx
jne 0x567d3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x567d0c
inc ecx
add ebx, ebx
jne 0x567d4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x567d0c
add ebx, ebx
jne 0x567d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x567d4e
jne 0x567d6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x567d4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x567d8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x567d7e
jmp 0x567cce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x567d8c
add edi, ecx
jmp 0x567cce
pop esi
mov edi, esi
mov ecx, 0x1125
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x567daa
cmp byte [edi], 0x11
jne 0x567daa
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 0x567daf
lea edi, [esi + 0x164000]
mov eax, dword [edi]
or eax, eax
je 0x567e1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x171ca4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x171ce8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x567ddc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x171cf0]
or eax, eax
je 0x567e18
mov dword [ebx], eax
add ebx, 4
jmp 0x567df9
call dword [esi + 0x171cec]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x567e4f
cmp al, 0xef
ja 0x567e42
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x567e24
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x567e31
mov ebp, dword [esi + 0x171cf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x567e83
sub esp, 0xffffff80
jmp 0x41ec40
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x573f56
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x16a76db
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x407730
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4077c1
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4077c1
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x4077c1
cmp dword [eax + edi + 0x7c], 0
je 0x4077c1
mov eax, dword [eax + edi + 0x78]
xor esi, esi
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x18]
add edx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x4077c1
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4077b0
test dl, dl
je 0x4077ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4077b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407790
xor eax, eax
jmp 0x4077b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4077ca
mov edx, dword [ebp + 8]
inc esi
cmp esi, ebx
jb 0x407788
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x457580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042272e
mov edi, eax
add esp, 4
test edi, edi
je 0x40befd
push 1
mov dword [ebp - 4], 0
call fcn.00420235
add esp, 4
mov dword [edi + 4], eax
jmp 0x40beff
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00403250
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40bf5a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40bf5a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40bf76
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40bf99
cmp byte [ebp + 0xc], 0
je 0x40bf85
push esi
call fcn.00420a26
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40bfa5
mov esi, str.ios_base::badbit_set
jmp 0x40bfb5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040c400
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.004044d0
push 0x4546f8
lea eax, [ebp - 0x28]
push eax
call fcn.00423a1d
int3
Function at 0x415d50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x457580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x94], ebx
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.0041de70
lea ecx, [ebp - 0x90]
call fcn.00416660
movups xmm0, xmmword [ebp - 0x38]
xor esi, esi
lea edi, [ebp - 0x28]
movups xmmword [ebp - 0xa8], xmm0
movzx eax, byte [ebp + esi - 0xa8]
push eax
push str._02X
push edi
call fcn.0041f900
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x415dd2
xorps xmm0, xmm0
mov byte [ebp - 8], 0
movups xmmword [ebx], xmm0
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415e10
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.00401cd0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004229cb
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x41663e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41664e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret
Function at 0x417f20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x457580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x458e98]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x458930]
cmp eax, dword [ecx + 4]
jg 0x4180e7
cmp dword [0x4574b0], 0
jne 0x4180ca
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00418d00
test al, al
jne 0x417fd9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00404020
mov esi, eax
add esp, 0xc
cmp esi, 0x4574a0
je 0x4180c1
mov ecx, dword [0x4574b4]
cmp ecx, 0xf
jbe 0x41807e
mov edx, dword [0x4574a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418074
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41811d
jmp 0x418074
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00424470
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x418047
cmp dword [ebp - 0x240], esi
je 0x41803b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x418020
jmp 0x418047
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00404020
add esp, 0x10
mov esi, eax
cmp esi, 0x4574a0
pop edi
jmp 0x417f96
push ecx
push edx
call fcn.0042275e
add esp, 8
mov dword [0x4574b0], 0
mov dword [0x4574b4], 0xf
mov byte [0x4574a0], 0
movups xmm0, xmmword [esi]
movups xmmword [0x4574a0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4574b0], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00404b60
pop esi
push 0x4574a0
mov ecx, ebx
call fcn.00403cb0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004229cb
mov esp, ebp
pop ebp
ret
push 0x458930
call fcn.00422c18
add esp, 4
cmp dword [0x458930], 0xffffffff
jne 0x417f5d
push 0x446640
call fcn.004229b6
push 0x458930
call fcn.00422bc7
add esp, 8
jmp 0x417f5d
call fcn.004276df
int3
Function at 0x418130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445736
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x457580]
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, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.00424470
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.004246fb
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4181b5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4182ae
call fcn.00401d60
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041d220
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00418740
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x41825f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418255
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4182f3
push ecx
push edx
call fcn.0042275e
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4182d6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4182cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4182f3
jmp 0x4182cc
call fcn.00401d60
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0041d220
add esp, 8
jmp 0x41827a
push ecx
push edx
call fcn.0042275e
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.004229cb
mov esp, ebp
pop ebp
ret
call fcn.004276df
int3
Function at 0x41fc49
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x41fc70
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x41fc73
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041fc25
pop esi
leave
ret 8

Function at 0x4231eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42322a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42322a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42322a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42322a
cmp dword [ecx + 0x74], 0xe
jbe 0x42322a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430332
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422cd0
mov eax, dword [0x457580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043692a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x430374
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4304d0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004229e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x459650]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00438bce
mov ecx, dword [esi*4 + 0x459650]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4304c9
cmp eax, dword [edi + ecx + 0x24]
jne 0x4304c9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4304c9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00438bce
add esp, 0x14
test edx, edx
jl 0x4304c9
jg 0x43043f
test eax, eax
jb 0x4304c9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4304c9
jl 0x430459
cmp dword [ebp - 0x1008], eax
ja 0x4304c9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x430477
test ebx, ebx
je 0x4304b0
cmp ecx, edi
jae 0x4304b0
mov al, byte [ecx]
cmp al, 0xd
jne 0x430491
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43049d
cmp byte [ecx + 1], 0xa
jne 0x43049d
inc ecx
jmp 0x43049d
movzx eax, al
movsx eax, byte [eax + 0x457840]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x430477
cmp edx, ebx
jne 0x430477
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4304ce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004229cb
leave
ret

Function at 0x435ad1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cbf0
push 0x44cbe8
push str.FlsAlloc
push 0x1e
call fcn.0043591b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435b05
push dword [ebp + 8]
mov ecx, esi
call dword [0x447238]
call esi
jmp 0x435b0b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x435b4f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cc00
push 0x44cbf8
push str.FlsGetValue
push 0x20
call fcn.0043591b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435b86
push dword [ebp + 8]
mov ecx, esi
call dword [0x447238]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x437c25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004378c7

Function at 0x437c30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437a56

Function at 0x43806c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x459650]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4380ac
cmp byte [ebx], 0xa
jne 0x4380ac
or byte [eax + edi + 0x28], 4
jmp 0x4380b1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4381af
mov al, byte [edx]
cmp al, 0x1a
je 0x438191
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4380e0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x438105
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43810f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4380c2
jmp 0x4381af
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43818c
cmp dword [ebp - 0xc], 0
je 0x43818c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x459650]
test byte [eax + edi + 0x28], 0x48
je 0x438166
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x438151
mov byte [esi], dl
jmp 0x438162
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x459650]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4381af
cmp byte [ebp - 1], 0xa
jne 0x438175
cmp esi, ebx
jne 0x438175
mov byte [esi], 0xa
jmp 0x4381ae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00438bec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4381af
mov byte [esi], 0xd
jmp 0x4381ae
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x459650]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4381ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4381af
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret