joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212d9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov edx, ecx
lea ecx, [ebp - 0x74]
push edi
call fcn.004210b8
mov esi, dword [ebp - 0x74]
xor ebx, ebx
test esi, esi
je 0x4213d1
cmp esi, 0xffffffff
je 0x4213d1
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x44
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x421369
push str.CreateWellKnownSid_failed
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x54], bl
call fcn.004011fd
lea eax, [ebp - 0x6c]
push eax
push eax
push 0x63
push str.InstallUACUtil::IsUserAnAdminGroup
push 1
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x6c]
call fcn.00402561
jmp 0x4213d1
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
call fcn.00421142
mov esi, dword [ebp - 0x84]
pop ecx
test al, al
je 0x4213bc
mov edi, ebx
cmp dword [esi], ebx
jbe 0x4213bc
lea eax, [esi + 4]
mov dword [ebp - 0x70], eax
push dword [eax]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4213ba
mov eax, dword [ebp - 0x70]
inc edi
add eax, 8
mov dword [ebp - 0x70], eax
cmp edi, dword [esi]
jb 0x42139a
jmp 0x4213bc
mov bl, 1
test esi, esi
je 0x4213d1
mov eax, dword [ebp - 0x7c]
push 1
sub eax, esi
push eax
push esi
call fcn.0040113b
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00404368
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
Function at 0x422bdb
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x214], 7
push edi
mov word [ebp - 0x228], ax
xor ebx, ebx
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x422d1a
push ecx
push ecx
lea eax, [ebp - 0x210]
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x422c40
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x258]
call fcn.00417ce0
push eax
lea ecx, [ebp - 0x228]
call fcn.00417f60
lea ecx, [ebp - 0x258]
call fcn.00417d90
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x228]
mov dword [eax], 0x456e48
mov dword [eax + 4], 9
lea eax, [ebp - 0x258]
push eax
call fcn.00419070
push eax
lea ecx, [ebp - 0x228]
call fcn.00417f60
lea ecx, [ebp - 0x258]
call fcn.00417d90
lea ecx, [ebp - 0x228]
call fcn.00416d80
test al, al
je 0x422d1a
push 0xf
pop edi
push 0xffffffffffffffff
lea edx, [ebp - 0x240]
mov dword [ebp - 0x230], ebx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], edi
mov byte [ebp - 0x240], bl
call fcn.0041b880
pop ecx
mov ecx, esi
test al, al
jne 0x422d0c
push ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
push 0x452649
mov byte [esi], bl
call fcn.00402637
lea ecx, [ebp - 0x240]
call fcn.004025ed
jmp 0x422d33
lea eax, [ebp - 0x240]
push eax
call fcn.0040250d
jmp 0x422cff
push ebx
mov dword [esi + 0x10], ebx
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x452649
mov byte [esi], bl
call fcn.00402637
lea ecx, [ebp - 0x228]
call fcn.00417d90
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
Function at 0x423359
Capabilities:
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je 0x42337c
xor eax, eax
jmp 0x4234e7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push 0x8000
push dword [esi + 0x60]
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4233fc
mov edx, str.internet_read_
lea ecx, [ebp - 0x1c]
call fcn.00422eab
push eax
lea ecx, [esi + 0x18]
call fcn.00405cf2
lea ecx, [ebp - 0x1c]
call fcn.00402561
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Download_chunk_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011fd
lea eax, [ebp - 0x20]
push eax
push eax
push 0xaf
push str.installer::Downloader::ReadChunk
push 1
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402561
jmp 0x423375
push 4
pop edi
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edi
push eax
push 0x20000013
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x423455
cmp dword [ebp - 0x28], 0xc8
je 0x423455
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.HTTP_request_status_isnt_OK
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011fd
lea eax, [ebp - 0x20]
push eax
push eax
push 0xb8
jmp 0x4233e0
cmp dword [ebp - 0x24], ebx
jbe 0x4234b8
mov ecx, dword [esi + 0x4c]
push dword [ebp - 0x24]
push dword [esi + 0x60]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x4234b8
mov edx, str.write_file_
lea ecx, [ebp - 0x1c]
call fcn.00422eab
push eax
lea ecx, [esi + 0x18]
call fcn.00405cf2
lea ecx, [ebp - 0x1c]
call fcn.00402561
xor eax, eax
mov dword [ebp - 0x10], ebx
push str.Write_file_error.
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call fcn.004011fd
lea eax, [ebp - 0x20]
push eax
push eax
push 0xbf
jmp 0x4233e0
cmp dword [esi + 0x48], ebx
jne 0x4234e4
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
push eax
push 0x20000005
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4234e4
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret
Function at 0x4234f8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jne 0x423617
push ebx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 4
push eax
push 0x20000013
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42354c
cmp dword [ebp - 0x48], 0xc8
jne 0x42354c
mov al, 1
jmp 0x423619
push 0xa
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x48]
call fcn.0042eaa2
add esp, 0xc
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], bl
push 0x11
push str.final_query_info_
call fcn.00402637
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42357f
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402683
push 1
push 0x457000
mov ecx, eax
call fcn.00402683
cmp dword [eax + 0x14], 0x10
jb 0x4235ab
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00422eab
push eax
lea ecx, [esi + 0x18]
call fcn.00405cf2
lea ecx, [ebp - 0x28]
call fcn.00402561
lea ecx, [ebp - 0x44]
call fcn.004025ed
xor eax, eax
mov dword [ebp - 0x1c], ebx
push str.Unsuccessful_download:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x14], bl
call fcn.004011fd
push esi
mov ecx, eax
call fcn.00402489
lea eax, [ebp - 0x2c]
push eax
push eax
push 0xdd
push str.installer::Downloader::FinalizeDownload
push 1
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00402561
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret

Function at 0x423c4c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042a440
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
lea edx, [ebp - 0x1008]
inc ebx
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x423d02
cmp dword [ebp - 0x1008], ebx
jne 0x423cbd
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.00406a3a
jmp 0x423d02
cmp dword [ebp - 0x1008], 2
jne 0x423cfd
mov ebx, 0x400
lea eax, [ebp - 0x1004]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x423cf6
cmp eax, ebx
ja 0x423cf6
lea eax, [ebp - 0x1004]
jmp 0x423cb3
mov esi, 0xea
jmp 0x423d02
mov esi, 0x3f4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret 8
Function at 0x4244bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
xor eax, eax
mov edi, edx
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x42452e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42452e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42452e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
test ebx, ebx
je 0x424532
mov edi, dword [ebp - 4]
mov ecx, eax
push edi
call fcn.00424b41
push edi
push ebx
push dword [ebp - 0x10]
call fcn.0042b290
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004161e9
lea ecx, [ebp - 0x10]
call fcn.0040aea7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424d42
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
xor ebx, ebx
push ebx
push ebx
push 0x8004
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x424dc1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_initialize_hash_object__error:
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004011fd
push esi
mov ecx, eax
call fcn.004012f9
lea eax, [ebp - 0x20]
push eax
push eax
push 0x35
push str.SignatureVerifier::HashData
push 1
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00402561
xor al, al
jmp 0x424e0b
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x424e09
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_hash_data__error:
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004011fd
push esi
mov ecx, eax
call fcn.004012f9
lea eax, [ebp - 0x20]
push eax
push eax
push 0x3a
jmp 0x424da6
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret 8
Function at 0x426b76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edx
mov dword [ebp - 8], edx
add edi, 0xdeadbeef
add edi, ecx
push 0xc
pop eax
mov edx, edi
mov esi, edi
mov dword [ebp - 4], edx
cmp ecx, eax
jbe switch.0x00426c74
lea eax, [ecx - 0xd]
xor edx, edx
push 0xc
pop ecx
div ecx
inc eax
mov dword [ebp - 0xc], eax
movzx edx, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 0xa]
add esi, edx
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 9]
add edx, edi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov edi, edx
add ecx, eax
rol edi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, esi
add ecx, dword [ebp - 4]
xor edi, ecx
sub esi, edi
mov eax, edi
add edi, edx
rol eax, 6
xor eax, esi
sub edx, eax
mov ecx, eax
rol ecx, 8
add eax, edi
xor ecx, edx
sub edi, ecx
mov edx, ecx
rol edx, 0x10
add ecx, eax
xor edx, edi
mov esi, edx
sub eax, edx
ror esi, 0xd
add edx, ecx
xor esi, eax
mov dword [ebp - 4], edx
sub ecx, esi
mov edi, esi
rol edi, 4
add esi, edx
xor edi, ecx
mov ecx, dword [ebp - 8]
push 0xc
pop eax
sub ecx, eax
add ebx, eax
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], ecx
jne 0x426bb1
cmp ecx, eax
ja 0x426ce0
jmp dword [ecx*4 + 0x426d2e]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 8]
add edi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add esi, eax
movzx eax, byte [ebx + 4]
add esi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add edx, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add edx, eax
movzx eax, byte [ebx]
add edx, eax
mov dword [ebp - 4], edx
xor edi, esi
mov eax, esi
rol eax, 0xe
sub edi, eax
mov eax, edi
mov edx, edi
xor edx, dword [ebp - 4]
rol eax, 0xb
sub edx, eax
xor esi, edx
mov eax, edx
ror eax, 7
sub esi, eax
mov eax, esi
xor edi, esi
rol eax, 0x10
sub edi, eax
mov eax, edi
mov ecx, edi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor esi, ecx
rol eax, 0xe
sub esi, eax
mov eax, esi
xor edi, esi
ror eax, 8
sub edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4275c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4275d5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4275d7
mov eax, dword [esi]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x42761e
cmp byte [ebp + 0xc], 0
je 0x42761e
cmp byte [esi + 4], 0
je 0x427610
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x429d20
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x45a170
call fcn.0042a270
push 1
call fcn.00429775
pop ecx
test al, al
jne 0x429bd1
push 7
call fcn.00429e58
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00429740
mov byte [ebp - 0x24], al
mov eax, dword [0x45e070]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x429bca
test eax, eax
jne 0x429c3b
mov dword [0x45e070], ecx
push 0x448288
push 0x448264
call fcn.00439b30
pop ecx
pop ecx
test eax, eax
je 0x429c1e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x429d14
push 0x448260
push 0x448234
call fcn.00439ad4
pop ecx
pop ecx
mov dword [0x45e070], 2
jmp 0x429c40
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004298e2
pop ecx
call fcn.0042a3cf
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x429c70
push esi
call fcn.00429858
pop ecx
test al, al
je 0x429c70
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00429d38
call esi
call fcn.0042a3d5
mov esi, eax
cmp dword [esi], edi
je 0x429c8e
push esi
call fcn.00429858
pop ecx
test al, al
je 0x429c8e
push dword [esi]
call fcn.00438d2c
pop ecx
call fcn.00429f74
movzx eax, ax
push eax
call fcn.00439a8e
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00429fa7
test al, al
jne 0x429cb9
push esi
call fcn.00438d64
test bl, bl
jne 0x429cc2
call fcn.00438d07
push edi
push 1
call fcn.004298ff
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x429d14
call fcn.0042a2b6
ret
call fcn.0042a31a
jmp 0x429bb2

Function at 0x42d187
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44a8c0
push 0x44a8b8
push str.FlsAlloc
push 0
call fcn.0042d107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d1b9
push dword [ebp + 8]
mov ecx, esi
call fcn.00429d38
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x42d1fb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44a8d0
push 0x44a8c8
push str.FlsGetValue
push 2
call fcn.0042d107
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x42d22c
mov ecx, esi
call fcn.00429d38
call esi
jmp 0x42d232
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x42d235
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x44a8d8
push 0x44a8d0
push str.FlsSetValue
push 3
call fcn.0042d107
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x42d269
mov ecx, esi
call fcn.00429d38
call esi
jmp 0x42d26f
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x43de71
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x45e870]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43deb2
cmp byte [edx], 0xa
jne 0x43deb2
or byte [eax + edi + 0x28], 4
jmp 0x43deb7
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x43dfa8
mov al, byte [ebx]
cmp al, 0x1a
je 0x43df89
cmp al, 0xd
je 0x43dee0
mov byte [esi], al
inc esi
inc ebx
jmp 0x43df7e
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x43df00
cmp byte [eax], 0xa
jne 0x43def5
push 2
mov byte [esi], 0xa
pop eax
jmp 0x43defb
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x43df7e
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43df77
cmp dword [ebp - 0x14], 0
je 0x43df77
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45e870]
test byte [eax + edi + 0x28], 0x48
je 0x43df4e
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x43df3e
mov byte [esi], dl
jmp 0x43df7a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45e870]
mov byte [eax + edi + 0x2a], dl
jmp 0x43df7a
cmp byte [ebp - 1], 0xa
jne 0x43df60
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x43df60
mov byte [esi], 0xa
jmp 0x43defd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044576b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43df7b
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x43dec9
jmp 0x43dfa8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45e870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43dfa3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43dfa8
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dfb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x45e870]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x43dff7
cmp word [edx], bx
jne 0x43dff7
or byte [edi + eax + 0x28], 4
jmp 0x43dffc
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x43e150
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x43e130
cmp ax, word [ebp - 0x10]
je 0x43e035
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x43e125
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x43e05b
push 0xa
pop ecx
cmp word [eax], cx
jne 0x43e04b
push ecx
pop eax
push 4
jmp 0x43e050
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x43e11f
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e116
cmp dword [ebp - 0x18], 0
je 0x43e116
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x45e870]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x43e0e2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x43e0a6
mov word [esi], ax
jmp 0x43e0da
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x45e870]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x45e870]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x45e870]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x43e125
cmp word [ebp - 4], ax
jne 0x43e0f7
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x43e0f7
mov word [esi], ax
add esi, 2
jmp 0x43e125
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044576b
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43e122
jmp 0x43e119
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x43e015
jmp 0x43e150
mov ecx, dword [ecx*4 + 0x45e870]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x43e147
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x43e150
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e95a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e7d7

Function at 0x4419d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441673
Function at 0x40229a
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push 0x10
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x401341
push 0
push 0x50
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_recvfrom]
lea eax, [ebp - 0x54]
mov eax, dword [eax]
push eax
pop ecx
mov eax, 0x48000
cmp ecx, eax
jne 0x402312
mov eax, dword [0x40114e]
push eax
lea edi, [ebp - 0x54]
add edi, 4
mov eax, dword [edi]
push eax
pop edx
pop eax
cmp eax, edx
jne 0x4022ef
push 3
pop eax
mov dword [0x401146], eax
jmp 0x402312
xor eax, eax
mov dword [0x401146], eax
push 0x10
push 0x401431
push 0
push 8
push 0x40114a
mov eax, dword [0x401142]
push eax
call dword [sym.imp.WS2_32.DLL_sendto]
mov esp, ebp
pop ebp
ret 4